System.Runtime.InteropServices.SafeHandle.IsClosed Property

Gets a value indicating whether the handle is closed.

Syntax

[get: System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success)]
public bool IsClosed { get; }

Value

Documentation for this section has not yet been entered.

Remarks

The SafeHandle.IsClosed method returns a value indicating whether the System.Runtime.InteropServices.SafeHandle object's handle is no longer associated with a native resource. This differs from the definition of the SafeHandle.IsInvalid property, which computes whether a given handle is always considered invalid. The SafeHandle.IsClosed method returns a true value in the following cases:

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: