共用方式為


INotifyObjectDisposing.IsDisposing 屬性

取得是否正在處置物件。

命名空間:  Microsoft.VisualStudio.SharePoint
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
ReadOnly Property IsDisposing As Boolean
    Get
bool IsDisposing { get; }

屬性值

型別:System.Boolean
如果正在處置物件,則為 True,否則為 false。

備註

即使在處置物件之後,也可以安全地檢查這個屬性。 在處置物件之後,IsDisposing 會維持為 true。

如果類別實作 INotifyPropertyChanged,當物件啟動處置程序時,就會針對這個屬性引發 PropertyChanged 事件。

.NET Framework 安全性

請參閱

參考

INotifyObjectDisposing 介面

Microsoft.VisualStudio.SharePoint 命名空間