This documentation is archived and is not being maintained.

PropertyChangedEventManager.RemoveListener Method

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
)
You cannot use methods in XAML.

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: