Advanced builder for creating ProcessConfiguration instances. Use this builder when you need argument escaping via ConfigureArguments(Action<ArgumentsSpec>), user credential configuration via ConfigureUserCredential(Action<UserCredentialSpec>), or resource policy configuration via ConfigureProcessResourcePolicy(Action<ProcessResourcePolicySpec>). For all other cases, prefer direct init construction of ProcessConfiguration.
public sealed class ProcessConfigurationBuilder : IProcessConfigurationBuilder, IDisposable
kind:method, kind:property, kind:ctor. Press Esc to clear.ProcessConfigurationBuilder(String, Func<String, Boolean>?)Initialises a new instance of the ProcessConfigurationBuilder class, which is used to build and configure a process.Build()Builds and returns a ProcessConfiguration object with the specified properties.ConfigureArguments(Action<ArgumentsSpec>)Configures the process arguments using the provided configuration action.ConfigureEnvironmentVariables(Action<EnvironmentVariablesSpec>)Configures the environment variables for the process using the provided configuration action.ConfigureProcessResourcePolicy(Action<ProcessResourcePolicySpec>)Sets the policy for managing process resources.ConfigureUserCredential(Action<UserCredentialSpec>)Sets the credentials for the Command to be executed.EnableWindowCreation(Boolean)Configures the process builder to enable or disable window creation.RedirectStandardInput(Boolean)Configures whether the standard input of the process should be redirected.RequireAdministratorPrivileges()Configures the process to run with administrator privileges.SetArgumentList(IReadOnlyList<String>?)Sets a pre-tokenised argument list. When non-empty, the control adapter emits these via instead of the single Arguments string.SetArguments(IEnumerable<String>, Boolean)Sets the process arguments to the Process Configuration builder.SetArguments(String)Sets process arguments to the Process Configuration builder.SetEncoding(Encoding?, Encoding?, Encoding?)Configures the process builder to use specific encoding schemes for standard input, output, and error streams.SetProcessResourcePolicy(ProcessResourcePolicy)Configures the resource policy for the process, adjusting settings such as priority class, priority boost, working set, and processor affinity.SetStandardInputPipe(StreamWriter)Sets the Standard Input Pipe source.SetTargetFilePath(String)Sets the target file path for the process configuration.SetUserCredential(UserCredential)Configures the process to use a user credential.SetWorkingDirectory(String)Sets the working directory path for the process configuration.UseShellExecution(Boolean)Configures whether shell execution should be used for the process.