System.Runtime.Handles Represents a wrapper class for a wait handle. Initializes a new instance of the class. An object that represents the pre-existing handle to use. true to reliably release the handle during the finalization phase; false to prevent reliable release (not recommended). Specifies whether the underlying handle is inheritable by child processes. Specifies that the handle is inheritable by child processes. Specifies that the handle is not inheritable by child processes. Represents a wrapper class for handle resources. Initializes a new instance of the class with the specified invalid handle value. The value of an invalid handle (usually 0 or -1). The derived class resides in an assembly without unmanaged code access permission. Releases all resources used by the . Releases the unmanaged resources used by the class specifying whether to perform a normal dispose operation. true for a normal dispose operation; false to finalize the handle. Frees all resources associated with the handle. Specifies the handle to be wrapped. Gets a value indicating whether the handle is closed. true if the handle is closed; otherwise, false. When overridden in a derived class, gets a value indicating whether the handle value is invalid. true if the handle is valid; otherwise, false. When overridden in a derived class, executes the code required to free the handle. true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. In this case, it generates a releaseHandleFailed MDA Managed Debugging Assistant. Sets the handle to the specified pre-existing handle. The pre-existing handle to use. Marks a handle as invalid. Represents a wrapper class for operating system handles. This class must be inherited. Initializes a new instance of the class with the specified invalid handle value. The value of an invalid handle (usually 0 or -1). Your implementation of should return true for this value. true to reliably let release the handle during the finalization phase; otherwise, false (not recommended). The derived class resides in an assembly without unmanaged code access permission. Manually increments the reference counter on instances. true if the reference counter was successfully incremented; otherwise, false. Returns the value of the field. An IntPtr representing the value of the field. If the handle has been marked invalid with , this method still returns the original handle value, which can be a stale value. Manually decrements the reference counter on a instance. Releases all resources used by the class. Releases the unmanaged resources used by the class specifying whether to perform a normal dispose operation. true for a normal dispose operation; false to finalize the handle. Frees all resources associated with the handle. Specifies the handle to be wrapped. Gets a value indicating whether the handle is closed. true if the handle is closed; otherwise, false. When overridden in a derived class, gets a value indicating whether the handle value is invalid. true if the handle value is invalid; otherwise, false. When overridden in a derived class, executes the code required to free the handle. true if the handle is released successfully; otherwise, in the event of a catastrophic failure, false. In this case, it generates a releaseHandleFailed MDA Managed Debugging Assistant. Sets the handle to the specified pre-existing handle. The pre-existing handle to use. Marks a handle as no longer used. Provides convenience methods to for working with a safe handle for a wait handle. Gets the safe handle for a native operating system wait handle. The safe wait handle that wraps the native operating system wait handle. A native operating system handle. is null. Sets a safe handle for a native operating system wait handle. A wait handle that encapsulates an operating system-specific object that waits for exclusive access to a shared resource. The safe handle to wrap the operating system handle. is null.