System.Runtime.InteropServices.CriticalHandle: Method Members

The methods of System.Runtime.InteropServices.CriticalHandle are listed below. For a list of all members, see the CriticalHandle Members list.

See Also: Inherited members from System.Runtime.ConstrainedExecution.CriticalFinalizerObject

Public Methods

Close()

Marks the handle for releasing and freeing resources.

Dispose()

Releases all resources used by the System.Runtime.InteropServices.CriticalHandle.

Finalize()

Frees all resources associated with the handle.

SetHandleAsInvalid()

Marks a handle as invalid.

Protected Methods

Dispose(bool)

Releases the unmanaged resources used by the System.Runtime.InteropServices.CriticalHandle class specifying whether to perform a normal dispose operation.

abstract
ReleaseHandle() : bool

When overridden in a derived class, executes the code required to free the handle.

SetHandle(IntPtr)

Sets the handle to the specified pre-existing handle.