Udostępnij za pośrednictwem


ExtensionMethods.RaiseEvent Method

Definition

Overloads

RaiseEvent(EventHandler, Object, EventArgs)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(PropertyChangingEventHandler, Object, String)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(PropertyChangingEventHandler, Object, PropertyChangingEventArgs)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(PropertyChangedEventHandler, Object, String)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(EventHandler<DependencyPropertyChangedEventArgs>, Object, DependencyPropertyChangedEventArgs)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(CancelEventHandler, Object, CancelEventArgs)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(NotifyCollectionChangedEventHandler, Object, NotifyCollectionChangedEventArgs)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(EventHandler, Object)

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(PropertyChangedEventHandler, Object, PropertyChangedEventArgs)

Helper method to perform the null check necessary to raise an event safely.

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

Helper method to perform the null check necessary to raise an event safely.

RaiseEvent(EventHandler, Object, EventArgs)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(EventHandler ^ eventHandler, System::Object ^ source, EventArgs ^ args);
public static void RaiseEvent (this EventHandler eventHandler, object source, EventArgs args);
static member RaiseEvent : EventHandler * obj * EventArgs -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As EventHandler, source As Object, args As EventArgs)

Parameters

eventHandler
EventHandler

The event.

source
Object

The event's source parameter.

args
EventArgs

The event's argument parameter.

Applies to

RaiseEvent(PropertyChangingEventHandler, Object, String)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(System::ComponentModel::PropertyChangingEventHandler ^ eventHandler, System::Object ^ source, System::String ^ propertyName);
public static void RaiseEvent (this System.ComponentModel.PropertyChangingEventHandler eventHandler, object source, string propertyName);
static member RaiseEvent : System.ComponentModel.PropertyChangingEventHandler * obj * string -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As PropertyChangingEventHandler, source As Object, propertyName As String)

Parameters

eventHandler
PropertyChangingEventHandler

The event.

source
Object

The event's source parameter.

propertyName
String

The name of the property which is changing.

Applies to

RaiseEvent(PropertyChangingEventHandler, Object, PropertyChangingEventArgs)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(System::ComponentModel::PropertyChangingEventHandler ^ eventHandler, System::Object ^ source, System::ComponentModel::PropertyChangingEventArgs ^ args);
public static void RaiseEvent (this System.ComponentModel.PropertyChangingEventHandler eventHandler, object source, System.ComponentModel.PropertyChangingEventArgs args);
static member RaiseEvent : System.ComponentModel.PropertyChangingEventHandler * obj * System.ComponentModel.PropertyChangingEventArgs -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As PropertyChangingEventHandler, source As Object, args As PropertyChangingEventArgs)

Parameters

eventHandler
PropertyChangingEventHandler

The event.

source
Object

The event's source parameter.

args
PropertyChangingEventArgs

The event's argument parameter.

Applies to

RaiseEvent(PropertyChangedEventHandler, Object, String)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(System::ComponentModel::PropertyChangedEventHandler ^ eventHandler, System::Object ^ source, System::String ^ propertyName);
public static void RaiseEvent (this System.ComponentModel.PropertyChangedEventHandler eventHandler, object source, string propertyName);
static member RaiseEvent : System.ComponentModel.PropertyChangedEventHandler * obj * string -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As PropertyChangedEventHandler, source As Object, propertyName As String)

Parameters

eventHandler
PropertyChangedEventHandler

The event.

source
Object

The event's source parameter.

propertyName
String

The name of the property which changed.

Applies to

RaiseEvent(EventHandler<DependencyPropertyChangedEventArgs>, Object, DependencyPropertyChangedEventArgs)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(EventHandler<System::Windows::DependencyPropertyChangedEventArgs> ^ eventHandler, System::Object ^ source, System::Windows::DependencyPropertyChangedEventArgs args);
public static void RaiseEvent (this EventHandler<System.Windows.DependencyPropertyChangedEventArgs> eventHandler, object source, System.Windows.DependencyPropertyChangedEventArgs args);
static member RaiseEvent : EventHandler<System.Windows.DependencyPropertyChangedEventArgs> * obj * System.Windows.DependencyPropertyChangedEventArgs -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As EventHandler(Of DependencyPropertyChangedEventArgs), source As Object, args As DependencyPropertyChangedEventArgs)

Parameters

source
Object

The event's source parameter.

args
DependencyPropertyChangedEventArgs

The event's argument parameter.

Applies to

RaiseEvent(CancelEventHandler, Object, CancelEventArgs)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(System::ComponentModel::CancelEventHandler ^ eventHandler, System::Object ^ source, System::ComponentModel::CancelEventArgs ^ args);
public static void RaiseEvent (this System.ComponentModel.CancelEventHandler eventHandler, object source, System.ComponentModel.CancelEventArgs args);
static member RaiseEvent : System.ComponentModel.CancelEventHandler * obj * System.ComponentModel.CancelEventArgs -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As CancelEventHandler, source As Object, args As CancelEventArgs)

Parameters

eventHandler
CancelEventHandler

The event.

source
Object

The event's source parameter.

args
CancelEventArgs

The event's argument parameter.

Applies to

RaiseEvent(NotifyCollectionChangedEventHandler, Object, NotifyCollectionChangedEventArgs)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(System::Collections::Specialized::NotifyCollectionChangedEventHandler ^ eventHandler, System::Object ^ source, System::Collections::Specialized::NotifyCollectionChangedEventArgs ^ args);
public static void RaiseEvent (this System.Collections.Specialized.NotifyCollectionChangedEventHandler eventHandler, object source, System.Collections.Specialized.NotifyCollectionChangedEventArgs args);
static member RaiseEvent : System.Collections.Specialized.NotifyCollectionChangedEventHandler * obj * System.Collections.Specialized.NotifyCollectionChangedEventArgs -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As NotifyCollectionChangedEventHandler, source As Object, args As NotifyCollectionChangedEventArgs)

Parameters

eventHandler
NotifyCollectionChangedEventHandler

The event.

source
Object

The event's source parameter.

args
NotifyCollectionChangedEventArgs

The event's argument parameter.

Applies to

RaiseEvent(EventHandler, Object)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(EventHandler ^ eventHandler, System::Object ^ source);
public static void RaiseEvent (this EventHandler eventHandler, object source);
static member RaiseEvent : EventHandler * obj -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As EventHandler, source As Object)

Parameters

eventHandler
EventHandler

The event.

source
Object

The event's source parameter.

Applies to

RaiseEvent(PropertyChangedEventHandler, Object, PropertyChangedEventArgs)

Helper method to perform the null check necessary to raise an event safely.

public:
[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(System::ComponentModel::PropertyChangedEventHandler ^ eventHandler, System::Object ^ source, System::ComponentModel::PropertyChangedEventArgs ^ args);
public static void RaiseEvent (this System.ComponentModel.PropertyChangedEventHandler eventHandler, object source, System.ComponentModel.PropertyChangedEventArgs args);
static member RaiseEvent : System.ComponentModel.PropertyChangedEventHandler * obj * System.ComponentModel.PropertyChangedEventArgs -> unit
<Extension()>
Public Sub RaiseEvent (eventHandler As PropertyChangedEventHandler, source As Object, args As PropertyChangedEventArgs)

Parameters

eventHandler
PropertyChangedEventHandler

The event.

source
Object

The event's source parameter.

args
PropertyChangedEventArgs

The event's argument parameter.

Applies to

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

Helper method to perform the null check necessary to raise an event safely.

public:
generic <typename TEventArgs>
 where TEventArgs : EventArgs[System::Runtime::CompilerServices::Extension]
 static void RaiseEvent(EventHandler<TEventArgs> ^ eventHandler, System::Object ^ source, TEventArgs args);
public static void RaiseEvent<TEventArgs> (this EventHandler<TEventArgs> eventHandler, object source, TEventArgs args) where TEventArgs : EventArgs;
static member RaiseEvent : EventHandler<'EventArgs (requires 'EventArgs :> EventArgs)> * obj * 'EventArgs -> unit (requires 'EventArgs :> EventArgs)
<Extension()>
Public Sub RaiseEvent(Of TEventArgs As EventArgs) (eventHandler As EventHandler(Of TEventArgs), source As Object, args As TEventArgs)

Type Parameters

TEventArgs

The EventArgs-derived event argument.

Parameters

eventHandler
EventHandler<TEventArgs>

The event.

source
Object

The event's source parameter.

args
TEventArgs

The event's argument parameter.

Applies to