AFEventFrameSearch.Subscribe Method (IObserver(AFSearchUpdateEvent(AFEventFrame)), Boolean, Int32)
- Last UpdatedSep 18, 2024
- PI System
- AF SDK 2024
- Developer
Subscribes an observer to matches for this event frame search.
Namespace: OSIsoft.AF.Search
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.0.1156
Syntax
public IDisposable Subscribe( IObserver<AFSearchUpdateEvent<AFEventFrame>> observer, bool observeExistingMatches, int maxCount )
Public Function Subscribe ( observer As IObserver(Of AFSearchUpdateEvent(Of AFEventFrame)), observeExistingMatches As Boolean, maxCount As Integer ) As IDisposable Dim instance As AFEventFrameSearch Dim observer As IObserver(Of AFSearchUpdateEvent(Of AFEventFrame)) Dim observeExistingMatches As Boolean Dim maxCount As Integer Dim returnValue As IDisposable returnValue = instance.Subscribe(observer, observeExistingMatches, maxCount)
public: IDisposable^ Subscribe( IObserver<AFSearchUpdateEvent<AFEventFrame^>^>^ observer, bool observeExistingMatches, int maxCount )
member Subscribe : observer : IObserver<AFSearchUpdateEvent<AFEventFrame>> * observeExistingMatches : bool * maxCount : int -> IDisposable
Parameters
- observer
- Type: System.IObserver<AFSearchUpdateEvent<AFEventFrame>>
The observer to notify on changes. - observeExistingMatches
- Type: System.Boolean
True if the current matches should be sent to the observer. - maxCount
- Type: System.Int32
Maximum number of items to observe at once.
Return Value
Type: IDisposableAn IDisposable instance to call to unsubscribe.