QuickOPC User's Guide and Reference
EasyDAItemSubscriptionArguments<T> Constructor(ServerDescriptor,DAItemDescriptor,DAGroupParameters,EasyDAItemChangedEventHandler<T>,Object)



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.Generic Namespace > EasyDAItemSubscriptionArguments<T> Class > EasyDAItemSubscriptionArguments<T> Constructor : EasyDAItemSubscriptionArguments<T> Constructor(ServerDescriptor,DAItemDescriptor,DAGroupParameters,EasyDAItemChangedEventHandler<T>,Object)
The OPC server involved in the operation.
The OPC item involved in the operation.
An object containing subscription parameters, such as the requested update rate.
A typed callback method to be invoked for each significant item change.
The state object (can be any value supplied by your code); available in event notifications.
Initializes a new instance of the class. Initializes a new instance of the class, with the specified OPC server and item descriptors, OPC group parameters, user-defined state object, and a typed callback method.
Syntax
'Declaration
 
Public Function New( _
   ByVal serverDescriptor As ServerDescriptor, _
   ByVal itemDescriptor As DAItemDescriptor, _
   ByVal groupParameters As DAGroupParameters, _
   ByVal callback As OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler(Of T), _
   ByVal state As Object _
)
'Usage
 
Dim serverDescriptor As ServerDescriptor
Dim itemDescriptor As DAItemDescriptor
Dim groupParameters As DAGroupParameters
Dim callback As OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler(Of T)
Dim state As Object
 
Dim instance As New EasyDAItemSubscriptionArguments(Of T)(serverDescriptor, itemDescriptor, groupParameters, callback, state)
public EasyDAItemSubscriptionArguments<T>( 
   ServerDescriptor serverDescriptor,
   DAItemDescriptor itemDescriptor,
   DAGroupParameters groupParameters,
   OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler<T> callback,
   object state
)
public:
EasyDAItemSubscriptionArguments<T>( 
   ServerDescriptor^ serverDescriptor,
   DAItemDescriptor^ itemDescriptor,
   DAGroupParameters^ groupParameters,
   OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler<T^>^ callback,
   Object^ state
)

Parameters

serverDescriptor
The OPC server involved in the operation.
itemDescriptor
The OPC item involved in the operation.
groupParameters
An object containing subscription parameters, such as the requested update rate.
callback
A typed callback method to be invoked for each significant item change.
state
The state object (can be any value supplied by your code); available in event notifications.
Remarks
If callback is a null reference, only the ItemChanged events are generated, but no callback method is invoked.
Requirements

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

See Also

Reference

EasyDAItemSubscriptionArguments<T> Class
EasyDAItemSubscriptionArguments<T> Members
Overload List