Class ParentProcessAttribute
Specifies the parent process to use when creating a new process.
Inherited Members
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: Fs.Processes
Assembly: Fs.Processes.dll
Syntax
public class ParentProcessAttribute : CreateProcessAttributeList.CreateProcessAttribute
Constructors
| Improve this Doc View SourceParentProcessAttribute(SafeProcessHandle)
Creates a new instance of the ParentProcessAttribute class.
Declaration
public ParentProcessAttribute(SafeProcessHandle processHandle)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Win32.SafeHandles.SafeProcessHandle | processHandle | The handle of the process to use as the parent of the newly created process. |
Remarks
The ParentProcessAttribute instance does not take ownership of the processHandle
handle. It
is the caller's responsibility to ensure the handle remains valid until it is no longer needed and to eventually dispose of the
handle.
Properties
| Improve this Doc View SourceHandle
Gets the handle of the process to use as the parent of the newly created process.
Declaration
public SafeProcessHandle Handle { get; }
Property Value
Type | Description |
---|---|
Microsoft.Win32.SafeHandles.SafeProcessHandle |