QuickOPC User's Guide and Reference
Raise<TEventArgs> Method



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Widgets Namespace > NotifyingWidget Class : Raise<TEventArgs> Method
The callback or event handler.
Event arguments that contains the callback or event data.
When not null, overrides the callback enqueuing setting on the widget.
Raises a callback or event using a given handler and passing it specified event arguments, optionally specifying whether to enqueue the call.
Syntax
'Declaration
 
Public Sub Raise(Of TEventArgs)( _
   ByVal handler As EventHandler(Of TEventArgs), _
   ByVal eventArgs As TEventArgs, _
   ByVal enqueue As Nullable(Of Boolean) _
) 
'Usage
 
Dim instance As NotifyingWidget
Dim handler As EventHandler(Of TEventArgs)
Dim eventArgs As TEventArgs
Dim enqueue As Nullable(Of Boolean)
 
instance.Raise(Of TEventArgs)(handler, eventArgs, enqueue)

Parameters

handler
The callback or event handler.
eventArgs
Event arguments that contains the callback or event data.
enqueue
When not null, overrides the callback enqueuing setting on the widget.

Type Parameters

TEventArgs
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