Principal.CheckDisposedOrDeleted 方法

定义

确定是否已对此类调用 Dispose()Delete() 方法。 此方法由从此主体类派生的类调用。

protected:
 void CheckDisposedOrDeleted();
protected void CheckDisposedOrDeleted ();
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected void CheckDisposedOrDeleted ();
member this.CheckDisposedOrDeleted : unit -> unit
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
member this.CheckDisposedOrDeleted : unit -> unit
Protected Sub CheckDisposedOrDeleted ()
属性

例外

已对此主体对象调用 Dispose() 方法。

已对此主体对象调用 Delete() 方法。

注解

此方法检查对象是否已释放,然后再确定是否已删除该对象。

适用于