INotifyObjectDisposing.IsDisposing, propriété

Obtient une valeur indiquant si un objet est en cours de suppression.

Espace de noms :  Microsoft.VisualStudio.SharePoint
Assembly :  Microsoft.VisualStudio.SharePoint (dans Microsoft.VisualStudio.SharePoint.dll)

Syntaxe

'Déclaration
ReadOnly Property IsDisposing As Boolean
bool IsDisposing { get; }

Valeur de propriété

Type : System.Boolean
True si l'objet est en cours de suppression ; sinon, false.

Notes

Il est possible de vérifier cette propriété sans risque même après que l'objet a été supprimé.IsDisposing reste true après que l'objet a été supprimé.

Si la classe implémente ensuite INotifyPropertyChanged l'événement PropertyChanged sera déclenché pour cette propriété lorsque l'objet démarrera le processus de suppression.

Sécurité .NET Framework

Voir aussi

Référence

INotifyObjectDisposing Interface

Microsoft.VisualStudio.SharePoint, espace de noms