ISupportDisposalNotification 接口

定义

表示一个对象,该对象可能会被释放,并且可以通知侦听器处置状态的更改。 保存对 ISupportDisposalNotification 实例的引用的对象应watch IsDisposed 属性上的属性更改,并且应在属性值变为 true 时释放其引用。

public interface class ISupportDisposalNotification : System::ComponentModel::INotifyPropertyChanged
public interface ISupportDisposalNotification : System.ComponentModel.INotifyPropertyChanged
type ISupportDisposalNotification = interface
    interface INotifyPropertyChanged
Public Interface ISupportDisposalNotification
Implements INotifyPropertyChanged
派生
实现

注解

保存对此接口实例的引用的对象应watch属性上的IsDisposed属性更改,并且应在属性值变为 true时释放其引用。

属性

IsDisposed

确定是否释放该项。 对此属性的更改通过 INotifyPropertyChanged.PropertyChanged 进行通知,使使用者能够通过 PropertyChangedEventManager 轻松使用弱事件侦听器。

适用于