Share via


ISupportDisposalNotification Interface

Represents an object that may become disposed, and that can notify listeners of changes to the disposal state.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

'Declaration
Public Interface ISupportDisposalNotification _
    Inherits INotifyPropertyChanged
public interface ISupportDisposalNotification : INotifyPropertyChanged
public interface class ISupportDisposalNotification : INotifyPropertyChanged
type ISupportDisposalNotification =  
    interface 
        interface INotifyPropertyChanged 
    end
public interface ISupportDisposalNotification extends INotifyPropertyChanged

The ISupportDisposalNotification type exposes the following members.

Properties

  Name Description
Public property IsDisposed Determines if the item is disposed.

Top

Events

  Name Description
Public event PropertyChanged Occurs when a property value changes. (Inherited from INotifyPropertyChanged.)

Top

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.

See Also

Reference

Microsoft.VisualStudio.Shell Namespace