OPC Studio User's Guide and Reference
Subscribe(Boolean) Method



OpcLabs.EasyOpcUA Assembly > OpcLabs.EasyOpc.UA.LiveMapping Namespace > UAClientMapper Class > Subscribe Method : Subscribe(Boolean) Method
true to subscribe; false to unsubscribe.
Executes the "Subscribe" operation on all mappings in this mapper.
Syntax
'Declaration
 
Public Overloads Sub Subscribe( _
   ByVal active As Boolean _
) 
'Usage
 
Dim instance As UAClientMapper
Dim active As Boolean
 
instance.Subscribe(active)
public void Subscribe( 
   bool active
)
public:
void Subscribe( 
   bool active
) 

Parameters

active
true to subscribe; false to unsubscribe.
Exceptions
ExceptionDescription
The component is not licensed for the operation requested.
Remarks
The "Subscribe" operation subscribes to or unsubscribes from changes of an OPC node. Only mappings of type UAClientDataMapping that include UADataMappingOperations.Subscribe in their UAClientDataMapping.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