mscorlib 2.0.0.0 2.0.0.0 4.0.0.0 System.Runtime.InteropServices.SafeHandle

This class derives from the class. It describes the format of an invalid handle that uses a value of -1. Further derivations of this class (for example, file or registry handles) can specialize this further. See the class for an example of a class that derives from .

Provides a base class for Win32 safe handle implementations in which the value of -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, specifying whether the handle is to be reliably released.

  true to reliably release the handle during the finalization phase; false to prevent reliable release (not recommended).
- 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.