QuickOPC User's Guide and Reference
Subscribe(Boolean) Method



OpcLabs.EasyOpcClassic Assembly > OpcLabs.EasyOpc.DataAccess.LiveMapping Namespace > DAClientMapper 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 DAClientMapper
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 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