Share via


ISupportDisposalNotification Interface

Definition

Represents an object which may become disposed, and which can notify listeners of changes to disposal state. Objects which hold references to an instance of ISupportDisposalNotification should watch for property changes on the IsDisposed property, and should release their reference when the property's value becomes true.

public interface class ISupportDisposalNotification : System::ComponentModel::INotifyPropertyChanged
public interface ISupportDisposalNotification : System.ComponentModel.INotifyPropertyChanged
type ISupportDisposalNotification = interface
    interface INotifyPropertyChanged
Public Interface ISupportDisposalNotification
Implements INotifyPropertyChanged
Derived
Implements

Remarks

Objects that hold references to an instance of this interface should watch for property changes on the IsDisposed property, and should release their reference when the property's value becomes true.

Properties

IsDisposed

Determines if the item is disposed. Changes to this property are notified through INotifyPropertyChanged.PropertyChanged, which allows consumers to easily use weak event listeners through PropertyChangedEventManager.

Applies to