ConfigureUserCredential(Action) Method

Definition

Sets the credentials for the Command to be executed.

[SupportedOSPlatform("windows")]
[UnsupportedOSPlatform("macos")]
[UnsupportedOSPlatform("linux")]
[UnsupportedOSPlatform("freebsd")]
[UnsupportedOSPlatform("android")]
public IProcessConfigurationBuilder ConfigureUserCredential(Action<UserCredentialSpec> configureCredential)

Parameters

configureCredential
Action<UserCredentialSpec>

The CredentialsBuilder configuration.

Returns

IProcessConfigurationBuilder
The new CommandBuilder with the specified Credentials.

Remarks

Credentials are only supported with the Process class on Windows. This is a limitation of .NET's Process class.