ProcStartInfoExtensions
Type extensions
Type extension | Description |
x.WithArguments(args)
Signature: args:string -> ProcStartInfo
|
Gets or sets the set of command-line arguments to use when starting the application. |
x.WithCreateNoWindow(noWindow)
Signature: noWindow:bool -> ProcStartInfo
|
Gets or sets a value indicating whether to start the process in a new window. |
x.WithCurrentEnvironmentVariables()
Signature: unit -> ProcStartInfo
|
Sets the current environment variables. |
x.WithDomain(domain)
Signature: domain:string -> ProcStartInfo
|
Gets or sets a value that identifies the domain to use when starting the process. |
x.WithEnvironmentVariable(...)
Signature: (envKey:string * envVar:string) -> ProcStartInfo
|
Sets the given environment variable for the given startInfo. |
x.WithEnvironmentVariables(vars)
Signature: (vars:seq<string * string>) -> ProcStartInfo
|
Gets or sets a value that identifies the domain to use when starting the process. |
x.WithErrorDialog(errorDialog)
Signature: errorDialog:bool -> ProcStartInfo
|
Gets or sets a value indicating whether an error dialog box is displayed to the user if the process cannot be started. |
x.WithErrorDialogParentHandle(handle)
Signature: handle:IntPtr -> ProcStartInfo
|
Gets or sets the window handle to use when an error dialog box is shown for a process that cannot be started. |
x.WithFileName(name)
Signature: name:string -> ProcStartInfo
|
Gets or sets the application or document to start. |
x.WithLoadUserProfile(userProfile)
Signature: userProfile:bool -> ProcStartInfo
|
true if the Windows user profile should be loaded; otherwise, false. The default is false. |
x.WithoutEnvironment()
Signature: unit -> ProcStartInfo
|
Remove the current Environment Variables and use the default |
x.WithPassword(password)
Signature: password:string -> ProcStartInfo
|
Gets or sets the user password in clear text to use when starting the process. |
x.WithRedirectStandardError(...)
Signature: redirectStdErr:bool -> ProcStartInfo
|
true if error output should be written to Process.StandardError; otherwise, false. The default is false. |
x.WithRedirectStandardInput(...)
Signature: redirectStdInput:bool -> ProcStartInfo
|
true if input should be read from Process.StandardInput; otherwise, false. The default is false. |
x.WithRedirectStandardOutput(...)
Signature: redirectStdOutput:bool -> ProcStartInfo
|
true if output should be written to Process.StandardOutput; otherwise, false. The default is false. |
x.WithRemovedEnvironmentVariable(envKey)
Signature: envKey:string -> ProcStartInfo
|
Unsets the given environment variable for the given startInfo. |
x.WithStandardErrorEncoding(encoding)
Signature: encoding:Encoding -> ProcStartInfo
|
An object that represents the preferred encoding for error output. The default is null. |
x.WithStandardOutputEncoding(encoding)
Signature: encoding:Encoding -> ProcStartInfo
|
An object that represents the preferred encoding for standard output. The default is null. |
x.WithUserName(name)
Signature: name:string -> ProcStartInfo
|
The user name to use when starting the process. If you use the UPN format, user@DNSdomainname, the Domain property must be null. |
x.WithUseShellExecute(shellExec)
Signature: shellExec:bool -> ProcStartInfo
|
true if the shell should be used when starting the process; false if the process should be created directly from the executable file. The default is true. |
x.WithVerb(name)
Signature: name:string -> ProcStartInfo
|
The action to take with the file that the process opens. The default is an empty string (""), which signifies no action. |
x.WithWindowStyle(style)
Signature: style:ProcessWindowStyle -> ProcStartInfo
|
One of the enumeration values that indicates whether the process is started in a window that is maximized, minimized, normal (neither maximized nor minimized), or not visible. The default is Normal. |
x.WithWorkingDirectory(dir)
Signature: dir:string -> ProcStartInfo
|
When UseShellExecute is true, the fully qualified name of the directory that contains the process to be started. When the UseShellExecute property is false, the working directory for the process to be started. The default is an empty string (""). |