'Declaration
<ExtensionAttribute()> <CanBeNullAttribute()> Public Overloads Shared Function WaitForItemValue( _ ByVal client As IEasyDAClient, _ ByVal itemArguments As DAItemArguments, _ ByVal groupParameters As DAGroupParameters, _ ByVal millisecondsTimeout As Integer _ ) As Object
'Usage
Dim client As IEasyDAClient Dim itemArguments As DAItemArguments Dim groupParameters As DAGroupParameters Dim millisecondsTimeout As Integer Dim value As Object value = IEasyDAClientExtension2.WaitForItemValue(client, itemArguments, groupParameters, millisecondsTimeout)
[Extension()] [CanBeNull()] public static object WaitForItemValue( IEasyDAClient client, DAItemArguments itemArguments, DAGroupParameters groupParameters, int millisecondsTimeout )
[Extension()] [CanBeNull()] public: static Object^ WaitForItemValue( IEasyDAClient^ client, DAItemArguments^ itemArguments, DAGroupParameters^ groupParameters, int millisecondsTimeout )
Parameters
- client
- The client object that will perform the operation.
This is typically the OpcLabs.EasyOpc.DataAccess.EasyDAClient object.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - itemArguments
- Holds an OPC server and item descriptor.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - groupParameters
- Contains subscription parameters, such as the requested update rate.
Because the OpcLabs.EasyOpc.DataAccess.DAGroupParameters has an implicit conversion from System.Int32, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use an integer (representing the requested update rate in milliseconds) in place of this parameter, and the corresponding OPC DA group parameters object will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the DAGroupParameters Constructor(Int32) constructor instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - millisecondsTimeout
- The number of milliseconds to wait, or System.Threading.Timeout.Infinite to wait indefinitely.
Valid values of this parameter are in the range from
-1
to2147483647 (Int32.MaxValue)
.
Return Value
This method can return null
(Nothing
in Visual Basic).