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
Зворотний зв’язок
https://aka.ms/ContentUserFeedback.
Очікується незабаром: протягом 2024 року ми будемо припиняти використання механізму реєстрації проблем у GitHub для зворотного зв’язку щодо вмісту й замінювати його новою системою зворотного зв’язку. Докладніше:Надіслати й переглянути відгук про