CmdProcessConfiguration(String, Boolean, Boolean, String?, Boolean, Dictionary<String, String>?, UserCredential?, StreamWriter?, Encoding?, Encoding?, Encoding?, ProcessResourcePolicy?, Boolean, Boolean, IEnumerable?) Constructor

Definition

Assembly CliInvoke.Specializations.dll

Initialises a new instance of the CmdProcessConfiguration class.

[SetsRequiredMembers]
public CmdProcessConfiguration(string arguments, bool redirectStandardInput, bool outputRedirection = true, string? workingDirectoryPath = null, bool requiresAdministrator = false, Dictionary<string, string>? environmentVariables = null, UserCredential? credentials = null, StreamWriter? standardInput = null, Encoding? standardInputEncoding = null, Encoding? standardOutputEncoding = null, Encoding? standardErrorEncoding = null, ProcessResourcePolicy? processResourcePolicy = null, bool useShellExecution = false, bool windowCreation = false, IEnumerable<string>? argumentList = null)

Parameters

arguments
String

The arguments to be passed to the command.

redirectStandardInput
Boolean

Whether to redirect standard input to the process.

outputRedirection
Boolean

Whether to redirect standard output and error streams.

workingDirectoryPath
String

The working directory for the command.

requiresAdministrator
Boolean

Indicates whether the command requires administrator privileges.

environmentVariables
Dictionary<String, String>

A dictionary of environment variables to be set for the command.

credentials
UserCredential

The user credentials to be used when running the command.

standardInput
StreamWriter

The stream for the standard input.

standardInputEncoding
Encoding?

The encoding for the standard input stream.

standardOutputEncoding
Encoding?

The encoding for the standard output stream.

standardErrorEncoding
Encoding?

The encoding for the standard error stream.

processResourcePolicy
ProcessResourcePolicy

The process resource policy for the command.

useShellExecution
Boolean

Indicates whether to use the shell to execute the command.

windowCreation
Boolean

Indicates whether to create a new window for the command.

argumentList
IEnumerable<String>

An optional verbatim argument list emitted via . Used by the middleware to deliver the cmd wrapper without OS re-tokenization.