Class InheritHandlesAttribute
Specifies a set of handles to be inherited by the child process.
Implements
System.Collections.Generic.IEnumerable<System.IntPtr>
System.Collections.IEnumerable
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 InheritHandlesAttribute : CreateProcessAttributeList.CreateProcessAttribute, IEnumerable<IntPtr>, IEnumerable
Constructors
| Improve this Doc View SourceInheritHandlesAttribute()
Creates a new instance of the InheritHandlesAttribute class.
Declaration
public InheritHandlesAttribute()
InheritHandlesAttribute(IEnumerable<IntPtr>)
Creates a new instance of the InheritHandlesAttribute class with the specified inherited handles.
Declaration
public InheritHandlesAttribute(IEnumerable<IntPtr> handles)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.IntPtr> | handles | The handles to be inherited by the child process. |
InheritHandlesAttribute(IEnumerable<SafeHandle>)
Creates a new instance of the InheritHandlesAttribute class with the specified inherited handles.
Declaration
public InheritHandlesAttribute(IEnumerable<SafeHandle> safeHandles)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.Runtime.InteropServices.SafeHandle> | safeHandles | The handles to be inherited by the child process. |
Properties
| Improve this Doc View SourceHandles
Gets the list of handles to be inherited by a child process.
Declaration
public IReadOnlyList<IntPtr> Handles { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<System.IntPtr> |
Methods
| Improve this Doc View SourceAdd(IntPtr)
Adds the handle
handle to the list of inherited handles.
Declaration
public void Add(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | The handle to add. |
Add(SafeHandle)
Adds the handle
handle to the list of inherited handles.
Declaration
public void Add(SafeHandle handle)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.InteropServices.SafeHandle | handle | The handle to add. |
GetEnumerator()
Gets an enumerator for the collection of handles.
Declaration
public IEnumerator<IntPtr> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<System.IntPtr> | An enumerator. |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable