'Declaration
Public Function New( _ ByVal callback As EasyUADataSetFieldMessageEventHandler, _ ByVal resolverDescriptor As UAPubSubResolverDescriptor, _ ByVal connectionDescriptor As UAPubSubConnectionDescriptor, _ ByVal filter As UASubscribeDataSetFilter, _ ByVal dataSetFieldDescriptor As UADataSetFieldDescriptor _ )
'Usage
Dim callback As EasyUADataSetFieldMessageEventHandler Dim resolverDescriptor As UAPubSubResolverDescriptor Dim connectionDescriptor As UAPubSubConnectionDescriptor Dim filter As UASubscribeDataSetFilter Dim dataSetFieldDescriptor As UADataSetFieldDescriptor Dim instance As New EasyUASubscribeDataSetFieldArguments(callback, resolverDescriptor, connectionDescriptor, filter, dataSetFieldDescriptor)
public EasyUASubscribeDataSetFieldArguments( EasyUADataSetFieldMessageEventHandler callback, UAPubSubResolverDescriptor resolverDescriptor, UAPubSubConnectionDescriptor connectionDescriptor, UASubscribeDataSetFilter filter, UADataSetFieldDescriptor dataSetFieldDescriptor )
public: EasyUASubscribeDataSetFieldArguments( EasyUADataSetFieldMessageEventHandler^ callback, UAPubSubResolverDescriptor^ resolverDescriptor, UAPubSubConnectionDescriptor^ connectionDescriptor, UASubscribeDataSetFilter^ filter, UADataSetFieldDescriptor^ dataSetFieldDescriptor )
Parameters
- 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). - resolverDescriptor
- Describes how the PubSub logical information should be resolved to physical.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - connectionDescriptor
- Descriptor for a PubSub connection (using physical parameters, or logical name).
Because the OpcLabs.EasyOpc.UA.PubSub.UAPubSubConnectionDescriptor has an implicit conversion from OpcLabs.BaseLib.Networking.ResourceAddress and System.String, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.BaseLib.Networking.ResourceAddress object, or a string (the so-called resource description string, usually a resource URL) in place of this parameter, and the corresponding OPC UA PubSub connection descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the FromResourceAddress or FromString static method instead.
Also, because the OpcLabs.EasyOpc.UA.PubSub.Configuration.UAPubSubConnectionElement has an implicit conversion to OpcLabs.EasyOpc.UA.PubSub.UAPubSubConnectionDescriptor, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.EasyOpc.UA.PubSub.Configuration.UAPubSubConnectionElement (from PubSub configuration) in place of this parameter, and the corresponding OPC UA PubSub connection descriptor will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can convert a OpcLabs.EasyOpc.UA.PubSub.Configuration.UAPubSubConnectionElement to OpcLabs.EasyOpc.UA.PubSub.UAPubSubConnectionDescriptor using the ToUAPubSubConnectionDescriptor static method instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - filter
- Specifies how the incoming PubSub messages should be filtered before being delivered to the application.
Because the OpcLabs.EasyOpc.UA.PubSub.UASubscribeDataSetFilter has an implicit conversion from OpcLabs.EasyOpc.UA.PubSub.UAPublisherId, in languages that support implicit conversion operators (such as C# or VB.NET), you can simply use a OpcLabs.EasyOpc.UA.PubSub.UAPublisherId (containing the publisher Id that you want to allow in the filter) in place of this parameter, and the corresponding OPC UA subscribe dataset filter will be constructed automatically. When the implicit conversion operators are not supported (such as with Python.NET), you can use the FromUAPublisherId static method instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic). - dataSetFieldDescriptor
- The descriptor for the dataset field.
Because the OpcLabs.EasyOpc.UA.PubSub.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 OpcLabs.EasyOpc.UA.PubSub.UADataSetFieldDescriptor.FromGuid or OpcLabs.EasyOpc.UA.PubSub.UADataSetFieldDescriptor.FromString static method instead.
The value of this parameter cannot be
null
(Nothing
in Visual Basic).