PropertyChangedEventManager.RemoveHandler Method (INotifyPropertyChanged, EventHandler<PropertyChangedEventArgs>, String)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Removes the specified event handler from the specified source.

Namespace:   System.ComponentModel
Assembly:  WindowsBase (in WindowsBase.dll)

public static void RemoveHandler(
	INotifyPropertyChanged source,
	EventHandler<PropertyChangedEventArgs> handler,
	string propertyName
)

Parameters

source
Type: System.ComponentModel.INotifyPropertyChanged

The source object that the raises the PropertyChanged event.

handler
Type: System.EventHandler<PropertyChangedEventArgs>

The delegate that handles the PropertyChanged event.

propertyName
Type: System.String

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

Exception Condition
ArgumentNullException

handler is null.

NotSupportedException

More than one method is associated with handler.

.NET Framework
Available since 4.5
Return to top
Show: