OPC Studio User's Guide and Reference
Subscribe(Boolean,IEnumerable<IDAClientMapping>) Method



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.LiveMapping Namespace > DAClientMapper Class > Subscribe Method : Subscribe(Boolean,IEnumerable<IDAClientMapping>) Method
true to subscribe; false to unsubscribe.
The mappings to be operated upon.

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

Executes the "Subscribe" operation on given mappings.
Syntax
'Declaration
 
Public Overloads Sub Subscribe( _
   ByVal active As Boolean, _
   ByVal mappings As IEnumerable(Of IDAClientMapping) _
) 
'Usage
 
Dim instance As DAClientMapper
Dim active As Boolean
Dim mappings As IEnumerable(Of IDAClientMapping)
 
instance.Subscribe(active, mappings)

Parameters

active
true to subscribe; false to unsubscribe.
mappings
The mappings to be operated upon.

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

Exceptions
ExceptionDescription
The component is not licensed for the operation requested.
Remarks
The "Subscribe" operation subscribes to or unsubscribes from changes of an OPC item. Only mappings of type DAClientItemMapping that include DAItemMappingOperations.Subscribe in their DAClientItemMapping.Operations are affected; other mappings are ignored.
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