QuickOPC User's Guide and Reference
Link Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Referencing Namespace > EventSource Class : Link Method
true to make the link; false to break the link.
A reference to the handler implementation.
Makes or breaks the link of this event source with given event handler.
Syntax
'Declaration
 
Public Sub Link( _
   ByVal doLink As Boolean, _
   ByVal eventHandler As EventHandler _
) 
'Usage
 
Dim instance As EventSource
Dim doLink As Boolean
Dim eventHandler As EventHandler
 
instance.Link(doLink, eventHandler)
public void Link( 
   bool doLink,
   EventHandler eventHandler
)
public:
void Link( 
   bool doLink,
   EventHandler^ eventHandler
) 

Parameters

doLink
true to make the link; false to break the link.
eventHandler
A reference to the handler implementation.
Exceptions
ExceptionDescription
Error related to the process of member linking.
Remarks
No operation is performed is SourceComponent is null.
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