OPC Studio User's Guide and Reference
EventSource Constructor(IComponent,String,IExtenderEventProvider)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.ComponentModel.Referencing Namespace > EventSource Class > EventSource Constructor : EventSource Constructor(IComponent,String,IExtenderEventProvider)
The component that is the source of the event.

The value of this parameter can be null (Nothing in Visual Basic).

Path to the event on the source component (typically, an event name).

The value of this parameter cannot be null (Nothing in Visual Basic).

The extender event provider that enhances the source component with the event.

The value of this parameter can be null (Nothing in Visual Basic).

Syntax
'Declaration
 
Public Function New( _
   ByVal sourceComponent As IComponent, _
   ByVal sourcePath As String, _
   ByVal extenderEventProvider As IExtenderEventProvider _
)
'Usage
 
Dim sourceComponent As IComponent
Dim sourcePath As String
Dim extenderEventProvider As IExtenderEventProvider
 
Dim instance As New EventSource(sourceComponent, sourcePath, extenderEventProvider)
public EventSource( 
   IComponent sourceComponent,
   string sourcePath,
   IExtenderEventProvider extenderEventProvider
)
public:
EventSource( 
   IComponent^ sourceComponent,
   String^ sourcePath,
   IExtenderEventProvider^ extenderEventProvider
)

Parameters

sourceComponent
The component that is the source of the event.

The value of this parameter can be null (Nothing in Visual Basic).

sourcePath
Path to the event on the source component (typically, an event name).

The value of this parameter cannot be null (Nothing in Visual Basic).

extenderEventProvider
The extender event provider that enhances the source component with the event.

The value of this parameter can be null (Nothing in Visual Basic).

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