PropertyChangedEventManager.RemoveHandler Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Removes the specified event handler from the specified source.
public:
static void RemoveHandler(System::ComponentModel::INotifyPropertyChanged ^ source, EventHandler<System::ComponentModel::PropertyChangedEventArgs ^> ^ handler, System::String ^ propertyName);
public static void RemoveHandler (System.ComponentModel.INotifyPropertyChanged source, EventHandler<System.ComponentModel.PropertyChangedEventArgs> handler, string propertyName);
static member RemoveHandler : System.ComponentModel.INotifyPropertyChanged * EventHandler<System.ComponentModel.PropertyChangedEventArgs> * string -> unit
Public Shared Sub RemoveHandler (source As INotifyPropertyChanged, handler As EventHandler(Of PropertyChangedEventArgs), propertyName As String)
Parameters
- source
- INotifyPropertyChanged
The source object that the raises the PropertyChanged event.
- handler
- EventHandler<PropertyChangedEventArgs>
The delegate that handles the PropertyChanged event.
- propertyName
- String
The name of the property that exists on source
upon which to stop listening for changes. Set to Empty to indicate "any property".
Exceptions
handler
is null
.
More than one method is associated with handler
.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.