SafeProcessHandle Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a managed wrapper for a process handle.
public ref class SafeProcessHandle sealed : Microsoft::Win32::SafeHandles::SafeHandleZeroOrMinusOneIsInvalid
public ref class SafeProcessHandle sealed : System::Runtime::InteropServices::SafeHandle
public sealed class SafeProcessHandle : Microsoft.Win32.SafeHandles.SafeHandleZeroOrMinusOneIsInvalid
[System.Security.SecurityCritical]
public sealed class SafeProcessHandle : System.Runtime.InteropServices.SafeHandle
type SafeProcessHandle = class
inherit SafeHandleZeroOrMinusOneIsInvalid
[<System.Security.SecurityCritical>]
type SafeProcessHandle = class
inherit SafeHandle
Public NotInheritable Class SafeProcessHandle
Inherits SafeHandleZeroOrMinusOneIsInvalid
Public NotInheritable Class SafeProcessHandle
Inherits SafeHandle
- Inheritance
- Inheritance
- Attributes
Safe |
Creates a SafeProcessHandle. |
Safe |
Initializes a new instance of the SafeProcessHandle class from the specified handle, indicating whether to release the handle during the finalization phase. |
handle |
Specifies the handle to be wrapped. (Inherited from SafeHandle) |
Is |
Gets a value indicating whether the handle is closed. (Inherited from SafeHandle) |
Is |
Gets a value that indicates whether the handle is invalid. |
Is |
Gets a value that indicates whether the handle is invalid. (Inherited from SafeHandleZeroOrMinusOneIsInvalid) |
Close() |
Marks the handle for releasing and freeing resources. (Inherited from SafeHandle) |
Dangerous |
Manually increments the reference counter on SafeHandle instances. (Inherited from SafeHandle) |
Dangerous |
Returns the value of the handle field. (Inherited from SafeHandle) |
Dangerous |
Manually decrements the reference counter on a SafeHandle instance. (Inherited from SafeHandle) |
Dispose() |
Releases all resources used by the SafeHandle class. (Inherited from SafeHandle) |
Dispose(Boolean) |
Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation. (Inherited from SafeHandle) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
Release |
When overridden in a derived class, executes the code required to free the handle. (Inherited from SafeHandle) |
Set |
Sets the handle to the specified pre-existing handle. (Inherited from SafeHandle) |
Set |
Marks a handle as no longer used. (Inherited from SafeHandle) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Product | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
.NET Framework | 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0, 2.1 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: