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



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveBinding Namespace > PointBinderCore Class > Subscribe Method : Subscribe(Boolean) Method
true to subscribe; false to unsubscribe.
Executes the "Subscribe" operation on all bindings in this binder.
Syntax
'Declaration
 
Public Overloads Sub Subscribe( _
   ByVal active As Boolean _
) 
'Usage
 
Dim instance As PointBinderCore
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

A method call was invalid for the object's current state.

This is a usage error, i.e. it will never occur (the exception will not be thrown) in a correctly written program. Your code should not catch this exception.

An operation was performed on a disposed object.
Remarks
The "Subscribe" operation subscribes to or unsubscribes from changes of a point. Only bindings of type PointBinding that include PointBindingOperations.Subscribe in their BindingOperations are affected; other bindings 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