Class CreateProcessInfo
Specifies a set of values used when creating a new process.
Inheritance
Inherited Members
Namespace: Fs.Processes
Assembly: Fs.Processes.dll
Syntax
public sealed class CreateProcessInfo
Properties
| Improve this Doc View SourceArguments
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 |
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> |
Attributes
Gets the list of attributes that contains attributes applied to the new process.
Declaration
public CreateProcessAttributeList Attributes { get; }
Property Value
| Type | Description |
|---|---|
| CreateProcessAttributeList |
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> |
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> |
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 |
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 |
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> |
FileName
Gets or sets the executable name for the process.
Declaration
public string FileName { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
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> |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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> |
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> |
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> |
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 |