PropertyChangedEventManager.RemoveListener Method (INotifyPropertyChanged, IWeakEventListener, String)

 

Removes the specified listener from the list of listeners on the provided source.

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

public static void RemoveListener(
	INotifyPropertyChanged source,
	IWeakEventListener listener,
	string propertyName
)

Parameters

source
Type: System.ComponentModel.INotifyPropertyChanged

The object to remove the listener from.

listener
Type: System.Windows.IWeakEventListener

The listener to remove.

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

.NET Framework
Available since 3.0
Return to top
Show: