Click or drag to resize

KillOnReleaseJob Class

Represents a job that kills all assigned processes when the job is disposed.
Inheritance Hierarchy

Namespace: GSF.Diagnostics
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.315-beta+4adf42f504c53785d91f363b84ec3ef7639a1462
Syntax
public class KillOnReleaseJob : SafeHandle
View Source

The KillOnReleaseJob type exposes the following members.

Constructors
 NameDescription
Public methodKillOnReleaseJob Creates a new job handle and sets JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE.
Top
Properties
 NameDescription
Public propertyIsClosedGets a value indicating whether the handle is closed.
(Inherited from SafeHandle)
Public propertyIsInvalid Gets a flag that indicates whether the job handle is invalid.
(Overrides SafeHandleIsInvalid)
Top
Methods
 NameDescription
Public methodAssignProcess Assigns a process to the job that will be killed when the job is disposed.
Public methodCloseMarks the handle for releasing and freeing resources.
(Inherited from SafeHandle)
Public methodDangerousAddRefManually increments the reference counter on SafeHandle instances.
(Inherited from SafeHandle)
Public methodDangerousGetHandleReturns the value of the handle field.
(Inherited from SafeHandle)
Public methodDangerousReleaseManually decrements the reference counter on a SafeHandle instance.
(Inherited from SafeHandle)
Public methodDisposeReleases all resources used by the SafeHandle class.
(Inherited from SafeHandle)
Protected methodDispose(Boolean)Releases the unmanaged resources used by the SafeHandle class specifying whether to perform a normal dispose operation.
(Inherited from SafeHandle)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeFrees all resources associated with the handle.
(Inherited from SafeHandle)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodReleaseHandle Releases the job handle, killing all assigned processes.
(Overrides SafeHandleReleaseHandle)
Protected methodSetHandleSets the handle to the specified pre-existing handle.
(Inherited from SafeHandle)
Public methodSetHandleAsInvalidMarks a handle as no longer used.
(Inherited from SafeHandle)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Protected fieldhandleSpecifies the handle to be wrapped.
(Inherited from SafeHandle)
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also