Class SafeThreadHandle
A System.Runtime.InteropServices.SafeHandle for a Windows Thread handle.
Inheritance
System.Object
System.Runtime.ConstrainedExecution.CriticalFinalizerObject
System.Runtime.InteropServices.SafeHandle
Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
SafeThreadHandle
Implements
System.IDisposable
Inherited Members
Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid.IsInvalid
System.Runtime.InteropServices.SafeHandle.handle
System.Runtime.InteropServices.SafeHandle.SetHandle(System.IntPtr)
System.Runtime.InteropServices.SafeHandle.DangerousGetHandle()
System.Runtime.InteropServices.SafeHandle.Close()
System.Runtime.InteropServices.SafeHandle.Dispose()
System.Runtime.InteropServices.SafeHandle.Dispose(System.Boolean)
System.Runtime.InteropServices.SafeHandle.SetHandleAsInvalid()
System.Runtime.InteropServices.SafeHandle.DangerousAddRef(System.Boolean)
System.Runtime.InteropServices.SafeHandle.DangerousRelease()
System.Runtime.InteropServices.SafeHandle.IsClosed
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Microsoft.Win32.SafeHandles
Assembly: Fs.Processes.dll
Syntax
public class SafeThreadHandle : SafeHandleZeroOrMinusOneIsInvalid, IDisposable
Constructors
| Improve this Doc View SourceSafeThreadHandle()
Creates a new SafeThreadHandle instance.
Declaration
public SafeThreadHandle()
SafeThreadHandle(IntPtr, Boolean)
Creates a new SafeThreadHandle instance for a specific handle.
Declaration
public SafeThreadHandle(IntPtr existingHandle, bool ownsHandle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | existingHandle | The handle |
System.Boolean | ownsHandle |
|
Methods
| Improve this Doc View SourceReleaseHandle()
Releases the associated handle.
Declaration
protected override bool ReleaseHandle()
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
System.Runtime.InteropServices.SafeHandle.ReleaseHandle()
Implements
System.IDisposable