Bagikan melalui


INotifyObjectDisposing.IsDisposing Property

Gets whether an object is disposing.

Namespace:  Microsoft.VisualStudio.SharePoint
Assembly:  Microsoft.VisualStudio.SharePoint (in Microsoft.VisualStudio.SharePoint.dll)

Syntax

'Declaration
ReadOnly Property IsDisposing As Boolean
bool IsDisposing { get; }

Property Value

Type: System.Boolean
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.

.NET Framework Security

See Also

Reference

INotifyObjectDisposing Interface

Microsoft.VisualStudio.SharePoint Namespace