mscorlib 2.0.0.0 2.0.0.0 4.0.0.0 System.Runtime.InteropServices.CriticalHandle

This class derives from the class. It describes the format of an invalid handle. For example, some handles use -1 as an invalid handle value, while others use 0. Further derivations of this class (for example, file or registry handles) can specialize this further.

Use the class when you need to wrap an unmanaged resource that does not have an existing managed wrapper.

See the class for important information on critical handle security and thread safety.

Provides a base class for Win32 critical handle implementations in which the value of either 0 or -1 indicates an invalid handle.

- Constructor
  2.0.0.0
  4.0.0.0
  System.Runtime.ConstrainedExecution.ReliabilityContract(System.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.MayFail)
  To be added.

  Initializes a new instance of the class.

- Property
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  The common language runtime uses this property to determine whether critical finalization is required.

  Gets a value that indicates whether the handle is invalid.