INotifyObjectDisposing.IsDisposing Property
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.
Gets whether an object is disposing.
public:
property bool IsDisposing { bool get(); };
public bool IsDisposing { get; }
member this.IsDisposing : bool
Public ReadOnly Property IsDisposing As Boolean
Property Value
True
if the object is disposing; false
otherwise.
Remarks
It is safe to check this property even after object is disposed. IsDisposing remains true
after the object is disposed.
If the class implements INotifyPropertyChanged then the PropertyChanged
event will be raised for this property when object starts the dispose process.