PropertyChangedEventManager.RemoveHandler Method

.NET Framework 4.6 and 4.5

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".

ExceptionCondition
ArgumentNullException

handler is null.

NotSupportedException

More than one method is associated with handler.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft