AdsClientExtensions.WhenNotification Method (IAdsConnection, ISymbol)

Gets an observable sequence of Notifications.

Namespace:  TwinCAT.Ads.Reactive
Assembly:  TwinCAT.Ads.Reactive (in TwinCAT.Ads.Reactive.dll) Version: 4.3.0.0 (4.3.7.0)

Syntax

C#

public static IObservable<Notification> WhenNotification(
    this IAdsConnection client,
    ISymbol symbol
)

VB

<ExtensionAttribute>
Public Shared Function WhenNotification ( 
    client As IAdsConnection,
    symbol As ISymbol
) As IObservable(Of Notification)

Parameters

client

Type: TwinCAT.Ads.IAdsConnection
The client.

symbol

Type: TwinCAT.TypeSystem.ISymbol
The symbol.

Return Value

Type: IObservable.Notification.
IObservable<NotificationValue>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IAdsConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Reference

AdsClientExtensions Class

WhenNotification Overload

TwinCAT.Ads.Reactive Namespace

AdsClientExtensions.WhenNotification(IAdsConnection, ISymbolCollection, NotificationSettings)

AdsClientExtensions.WhenNotification(IAdsConnection, ISymbol, NotificationSettings)