次の方法で共有


DisposableObject.IsDisposed Property

Definition

Returns whether the object has been disposed once, protects against double disposal

public:
 property bool IsDisposed { bool get(); };
public:
 property bool IsDisposed { bool get(); };
public bool IsDisposed { get; }
member this.IsDisposed : bool
Public ReadOnly Property IsDisposed As Boolean

Property Value

true if the object has already been disposed.

Applies to