Show / Hide Table of Contents

Class CreateProcessInfo

Specifies a set of values used when creating a new process.

Inheritance
System.Object
CreateProcessInfo
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 sealed class CreateProcessInfo

Properties

| Improve this Doc View Source

Arguments

Gets or sets the command-line arguments to use when creating the process. The contents of this property is used as-is when building the new process's command line. This property must be System.String.Empty if ArgumentsList is used.

Declaration
public string Arguments { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ArgumentsList

Gets the list of arguments to pass to the new process. Each argument is escaped, if needed, when building the new process's command line. This property cannot be used with Arguments.

Declaration
public IList<string> ArgumentsList { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>
| Improve this Doc View Source

Attributes

Gets the list of attributes that contains attributes applied to the new process.

Declaration
public CreateProcessAttributeList Attributes { get; }
Property Value
Type Description
CreateProcessAttributeList
| Improve this Doc View Source

ConsoleBufferSize

Gets or sets the default console buffer width and height when a new console window is created for a console process.

Declaration
public Size? ConsoleBufferSize { get; set; }
Property Value
Type Description
System.Nullable<System.Drawing.Size>
| Improve this Doc View Source

ConsoleFill

Gets or sets the default console colors when a new console window is created for a console process.

Declaration
public ConsoleColors? ConsoleFill { get; set; }
Property Value
Type Description
System.Nullable<ConsoleColors>
| Improve this Doc View Source

Desktop

Gets or sets the name of the desktop, or the name of both the desktop and window station for this process. A backslash in the string indicates that the string includes both the desktop and window station names.

Declaration
public string Desktop { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Domain

Gets or sets the value that identifies the domain to use when creating the process. If this value is null, the UserName property must be specified in UPN format.

Declaration
public string Domain { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Environment

Gets the environment variables that apply to the new process and its child processes.

Declaration
public IDictionary<string, string> Environment { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>
| Improve this Doc View Source

FileName

Gets or sets the executable name for the process.

Declaration
public string FileName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

ForceFeedback

Gets or sets whether the cursor is in feedback mode when the process is created.

Declaration
public bool? ForceFeedback { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>
| Improve this Doc View Source

HotKey

Gets or sets the hotkey assigned to the first eligible top-level window created by the new process. This property cannot be used with RedirectStandardOutput, RedirectStandardInput or RedirectStandardError.

Declaration
public int HotKey { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

LoadUserProfile

Gets or sets a value that indicates whehter the Windows user profile is to be loaded from the registry.

Declaration
public bool LoadUserProfile { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Password

Gets or sets a secure string that contains the user password to use when creating the process.

Declaration
public SecureString Password { get; set; }
Property Value
Type Description
System.Security.SecureString
| Improve this Doc View Source

PasswordInClearText

Gets or sets the user password in clear text to use when creating the process.

Declaration
public string PasswordInClearText { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PreventPinning

Gets or sets whether any windows created by the process cannot be pinned on the taskbar. TitleIs must be AppID if this property is true.

Declaration
public bool PreventPinning { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

RedirectStandardError

Gets or sets a value that indicates whehter the error output of the process is written to the StandardError stream.

Declaration
public bool RedirectStandardError { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

RedirectStandardInput

Gets or sets a value indicating whether the input for the new process is read from the StandardInput stream.

Declaration
public bool RedirectStandardInput { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

RedirectStandardOutput

Gets or sets a value that indicates whehter the error output of the process is written to the StandardOutput stream.

Declaration
public bool RedirectStandardOutput { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

StandardErrorEncoding

Gets or sets the encoding to be used when reading StandardError. When null, the console's current encoding is used.

Declaration
public Encoding StandardErrorEncoding { get; set; }
Property Value
Type Description
System.Text.Encoding
| Improve this Doc View Source

StandardInputEncoding

Gets or sets the encoding to be used when writing to StandardInput. When null, the console's current encoding is used.

Declaration
public Encoding StandardInputEncoding { get; set; }
Property Value
Type Description
System.Text.Encoding
| Improve this Doc View Source

StandardOutputEncoding

Gets or sets the encoding to be used when reading StandardOutput. When null, the console's current encoding is used.

Declaration
public Encoding StandardOutputEncoding { get; set; }
Property Value
Type Description
System.Text.Encoding
| Improve this Doc View Source

Title

Gets or sets the value used as the title for the new process. For console processes, this is the title displayed in the title bar if a new console window is created. If null, the name of the executable file is used as the window title instead. This parameter must be null for GUI or console processes that do not create a new console window.

Declaration
public string Title { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

TitleIs

Gets or sets a value that determines how the Title value is used.

Declaration
public TitleIs TitleIs { get; set; }
Property Value
Type Description
TitleIs
| Improve this Doc View Source

UntrustedSource

Gets or sets a value indicating whether the command line came from an untrusted source.

Declaration
public bool UntrustedSource { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

UserName

Gets or sets the user name to use when creating the process. If you use the UPN format,

user@DNS_domain_name
, the Domain property must be null.
Declaration
public string UserName { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

WindowPosition

Gets or sets the System.Drawing.Point used as the default window position for GUI processes.

Declaration
public Point? WindowPosition { get; set; }
Property Value
Type Description
System.Nullable<System.Drawing.Point>
| Improve this Doc View Source

WindowShow

Gets or sets the window state to use when the process is created.

Declaration
public WindowShow? WindowShow { get; set; }
Property Value
Type Description
System.Nullable<WindowShow>
| Improve this Doc View Source

WindowSize

Gets or sets the System.Drawing.Size used as the default width and height for GUI processes.

Declaration
public Size? WindowSize { get; set; }
Property Value
Type Description
System.Nullable<System.Drawing.Size>
| Improve this Doc View Source

WorkingDirectory

Gets or sets the working directory to use when creating the process.

Declaration
public string WorkingDirectory { get; set; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
Back to top Generated by DocFX