CredentialResult Class

Represents the result of a credential prompt operation.

public sealed class CredentialResult

Constructors

NameDescription
CredentialResult(string, string, string?, CredentialSaveOption)Initializes a new instance of the CredentialResult class.

CredentialResult(string, string, string?, CredentialSaveOption)

CredentialResult.cs

Initializes a new instance of the CredentialResult class.

public CredentialResult(string userName, string password, string? domain, CredentialSaveOption credentialSaved)

Parameters

userName string
The username.
password string
The password.
domain string?
The domain name.
credentialSaved CredentialSaveOption
Indicates whether the user chose to save the credentials.

Properties

NameDescription
CredentialSavedGets a value indicating whether the user chose to save the credentials.
DomainGets the domain name.
PasswordGets the password.
UserNameGets the username.

CredentialSaved

CredentialResult.cs

Gets a value indicating whether the user chose to save the credentials.

public CredentialSaveOption CredentialSaved { get; }

Property value

CredentialSaveOption

Gets the domain name.

public string? Domain { get; }

Property value

string?

Gets the password.

public string Password { get; }

Property value

string

Gets the username.

public string UserName { get; }

Property value

string

Methods

NameDescription
ToString()
public override string ToString()

Returns

string

No documentation is available.