PropertyChangedEventManager::RemoveHandler Method (INotifyPropertyChanged^, EventHandler<PropertyChangedEventArgs^>^, String^)
.NET Framework (current version)
Removes the specified event handler from the specified source.
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
Available since 4.5
Show: