ValueSymbolExtensions.PollValuesAnnotated Method (IValueSymbol, TimeSpan)

Polls the values as ValueChangedArgs sequence with a specified period time.

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<ValueChangedArgs> PollValuesAnnotated(
    this IValueSymbol symbol,
    TimeSpan period
)

VB

<ExtensionAttribute>
Public Shared Function PollValuesAnnotated ( 
    symbol As IValueSymbol,
    period As TimeSpan
) As IObservable(Of ValueChangedArgs)

Parameters

symbol

Type: TwinCAT.TypeSystem.IValueSymbol
The symbol.

period

Type: System.TimeSpan
The polling period/interval.

Return Value

Type: IObservable.ValueChangedArgs.
IObservable<ValueChangedArgs>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IValueSymbol. 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

ValueSymbolExtensions Class

PollValuesAnnotated Overload

TwinCAT.Ads.Reactive Namespace