PropertyChangedEventManager.RemoveHandler Method

Definition

Removes the specified event handler from the specified source.

public:
 static void RemoveHandler(System::ComponentModel::INotifyPropertyChanged ^ source, EventHandler<System::ComponentModel::PropertyChangedEventArgs ^> ^ handler, System::String ^ propertyName);
public static void RemoveHandler (System.ComponentModel.INotifyPropertyChanged source, EventHandler<System.ComponentModel.PropertyChangedEventArgs> handler, string propertyName);
static member RemoveHandler : System.ComponentModel.INotifyPropertyChanged * EventHandler<System.ComponentModel.PropertyChangedEventArgs> * string -> unit
Public Shared Sub RemoveHandler (source As INotifyPropertyChanged, handler As EventHandler(Of PropertyChangedEventArgs), propertyName As String)

Parameters

source
INotifyPropertyChanged

The source object that the raises the PropertyChanged event.

handler
EventHandler<PropertyChangedEventArgs>

The delegate that handles the PropertyChanged event.

propertyName
String

The name of the property that exists on source upon which to stop listening for changes. Set to Empty to indicate "any property".

Exceptions

handler is null.

More than one method is associated with handler.

Applies to