System.Runtime.InteropServices.CriticalHandle.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 CriticalHandle.IsClosed method returns a value indicating whether the System.Runtime.InteropServices.CriticalHandle object's handle is no longer associated with a native resource. This differs from the definition of the CriticalHandle.IsInvalid property, which computes whether a given handle is always considered invalid. The CriticalHandle.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: .NET 2.0