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
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา