OPC Studio User's Guide and Reference
EasyUASubscribeDataSetArguments Constructor(Object,UADataSetSubscriptionDescriptor)



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.PubSub.OperationModel Namespace > EasyUASubscribeDataSetArguments Class > EasyUASubscribeDataSetArguments Constructor : EasyUASubscribeDataSetArguments Constructor(Object,UADataSetSubscriptionDescriptor)
The state object (can be any value supplied by your code); available in event notifications.

The value of this parameter can be null (Nothing in Visual Basic).

Contains information needed to subscribe to a dataset.

The value of this parameter cannot be null (Nothing in Visual Basic).

Initializes a new instance of the class, specifying the state object, and dataset subscription descriptor.
Syntax
'Declaration
 
Public Function New( _
   ByVal state As Object, _
   ByVal dataSetSubscriptionDescriptor As UADataSetSubscriptionDescriptor _
)
'Usage
 
Dim state As Object
Dim dataSetSubscriptionDescriptor As UADataSetSubscriptionDescriptor
 
Dim instance As New EasyUASubscribeDataSetArguments(state, dataSetSubscriptionDescriptor)
public EasyUASubscribeDataSetArguments( 
   object state,
   UADataSetSubscriptionDescriptor dataSetSubscriptionDescriptor
)
public:
EasyUASubscribeDataSetArguments( 
   Object^ state,
   UADataSetSubscriptionDescriptor^ dataSetSubscriptionDescriptor
)

Parameters

state
The state object (can be any value supplied by your code); available in event notifications.

The value of this parameter can be null (Nothing in Visual Basic).

dataSetSubscriptionDescriptor
Contains information needed to subscribe to a dataset.

The value of this parameter cannot be null (Nothing in Visual Basic).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also