'Declaration
<ExtensionAttribute()> <CanBeNullAttribute()> Public Overloads Shared Function WaitForItemValue( _ ByVal client As IEasyDAClient, _ ByVal serverDescriptor As ServerDescriptor, _ ByVal itemDescriptor As DAItemDescriptor, _ ByVal groupParameters As DAGroupParameters, _ ByVal millisecondsTimeout As Integer _ ) As Object
'Usage
Dim client As IEasyDAClient Dim serverDescriptor As ServerDescriptor Dim itemDescriptor As DAItemDescriptor Dim groupParameters As DAGroupParameters Dim millisecondsTimeout As Integer Dim value As Object value = IEasyDAClientExtension2.WaitForItemValue(client, serverDescriptor, itemDescriptor, groupParameters, millisecondsTimeout)
[Extension()] [CanBeNull()] public static object WaitForItemValue( IEasyDAClient client, ServerDescriptor serverDescriptor, DAItemDescriptor itemDescriptor, DAGroupParameters groupParameters, int millisecondsTimeout )
[Extension()] [CanBeNull()] public: static Object^ WaitForItemValue( IEasyDAClient^ client, ServerDescriptor^ serverDescriptor, DAItemDescriptor^ itemDescriptor, DAGroupParameters^ groupParameters, int millisecondsTimeout )
Parameters
- client
- The client object that will perform the operation.
- serverDescriptor
- The OPC server involved in the operation.
- itemDescriptor
- The OPC-DA item involved in the operation.
- groupParameters
- Contains subscription parameters, such as the requested update rate.
- millisecondsTimeout
- The number of milliseconds to wait, or System.Threading.Timeout.Infinite to wait indefinitely.
Return Value
If successful, the function returns the actual value of OPC item requested.