'Declaration
<ExtensionAttribute()> Public Overloads Shared Function SubscribeDataSetField( _ ByVal subscriber As IEasyUASubscriber, _ ByVal subscribeDataSetArguments As UASubscribeDataSetArguments, _ ByVal dataSetFieldDescriptor As UADataSetFieldDescriptor, _ ByVal callback As EasyUADataSetFieldMessageEventHandler _ ) As Integer
'Usage
Dim subscriber As IEasyUASubscriber Dim subscribeDataSetArguments As UASubscribeDataSetArguments Dim dataSetFieldDescriptor As UADataSetFieldDescriptor Dim callback As EasyUADataSetFieldMessageEventHandler Dim value As Integer value = IEasyUASubscriberExtension.SubscribeDataSetField(subscriber, subscribeDataSetArguments, dataSetFieldDescriptor, callback)
[Extension()] public static int SubscribeDataSetField( IEasyUASubscriber subscriber, UASubscribeDataSetArguments subscribeDataSetArguments, UADataSetFieldDescriptor dataSetFieldDescriptor, EasyUADataSetFieldMessageEventHandler callback )
[Extension()] public: static int SubscribeDataSetField( IEasyUASubscriber^ subscriber, UASubscribeDataSetArguments^ subscribeDataSetArguments, UADataSetFieldDescriptor^ dataSetFieldDescriptor, EasyUADataSetFieldMessageEventHandler^ callback )
Parameters
- subscriber
- The subscriber object that will perform the operation.
This is typically the EasyUASubscriber object.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - subscribeDataSetArguments
- Holds all arguments needed to subscribe to a dataset in OPC UA PubSub.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - dataSetFieldDescriptor
- The descriptor for the dataset field.
Because the UADataSetFieldDescriptor has implicit conversions from System.Guid and System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a GUID (representing the dataset field Id), or a string (representing the name of the dataset field) in place of this parameter, and the corresponding OPC UA dataset field descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the UADataSetFieldDescriptor.FromGuid or UADataSetFieldDescriptor.FromString static method instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - callback
- A callback method to be invoked for each time a dataset field is received.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).