OPC Studio User's Guide and Reference
LinkEventSource Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.LiveBinding Namespace > BinderBase Class : LinkEventSource Method
true to make the link; false to break the link.
An event source to be linked.
A reference to the handler implementation.
Links or unlinks a given event source with event handler.
Syntax
'Declaration
 
Public Sub LinkEventSource( _
   ByVal link As Boolean, _
   ByVal eventSource As EventSource, _
   ByVal eventHandler As EventHandler _
) 
'Usage
 
Dim instance As BinderBase
Dim link As Boolean
Dim eventSource As EventSource
Dim eventHandler As EventHandler
 
instance.LinkEventSource(link, eventSource, eventHandler)
public void LinkEventSource( 
   bool link,
   EventSource eventSource,
   EventHandler eventHandler
)
public:
void LinkEventSource( 
   bool link,
   EventSource^ eventSource,
   EventHandler^ eventHandler
) 

Parameters

link
true to make the link; false to break the link.
eventSource
An event source to be linked.
eventHandler
A reference to the handler implementation.
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