IGuardedOperations.RaiseEvent Method

Definition

Overloads

RaiseEvent(Object, EventHandler)

Safely raises an event with empty EventArgs. Errors are tracked per sender, performance is tracked per handler.

RaiseEvent<TArgs>(Object, EventHandler<TArgs>, TArgs)

Safely raises an event with specified args. Errors are tracked per sender, performance is tracked per handler.

RaiseEvent(Object, EventHandler)

Safely raises an event with empty EventArgs. Errors are tracked per sender, performance is tracked per handler.

public:
 void RaiseEvent(System::Object ^ sender, EventHandler ^ eventHandlers);
public void RaiseEvent (object sender, EventHandler eventHandlers);
abstract member RaiseEvent : obj * EventHandler -> unit
Public Sub RaiseEvent (sender As Object, eventHandlers As EventHandler)

Parameters

sender
Object

Reference to the sender of the event. Tracks errors.

eventHandlers
EventHandler

Event to raise. Each handler tracks performance.

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to

RaiseEvent<TArgs>(Object, EventHandler<TArgs>, TArgs)

Safely raises an event with specified args. Errors are tracked per sender, performance is tracked per handler.

public:
generic <typename TArgs>
 where TArgs : EventArgs void RaiseEvent(System::Object ^ sender, EventHandler<TArgs> ^ eventHandlers, TArgs args);
public void RaiseEvent<TArgs> (object sender, EventHandler<TArgs> eventHandlers, TArgs args) where TArgs : EventArgs;
abstract member RaiseEvent : obj * EventHandler<'Args (requires 'Args :> EventArgs)> * 'Args -> unit (requires 'Args :> EventArgs)
Public Sub RaiseEvent(Of TArgs As EventArgs) (sender As Object, eventHandlers As EventHandler(Of TArgs), args As TArgs)

Type Parameters

TArgs

Parameters

sender
Object

Reference to the sender of the event. Tracks errors.

eventHandlers
EventHandler<TArgs>

Event to raise. Each handler tracks performance.

args
TArgs

Event data.

Remarks

This class supports the Visual Studio infrastructure and in general is not intended to be used directly from your code.

Applies to