Show / Hide Table of Contents

Class InheritHandlesAttribute

Specifies a set of handles to be inherited by the child process.

Inheritance
System.Object
CreateProcessAttributeList.CreateProcessAttribute
InheritHandlesAttribute
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 Source

InheritHandlesAttribute()

Creates a new instance of the InheritHandlesAttribute class.

Declaration
public InheritHandlesAttribute()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

Handles

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 Source

Add(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source
Back to top Generated by DocFX