CredentialPickerResults CredentialPickerResults CredentialPickerResults CredentialPickerResults CredentialPickerResults Class


Describes the results of the dialog box operation.

public : sealed class CredentialPickerResults : ICredentialPickerResults
struct winrt::Windows::Security::Credentials::UI::CredentialPickerResults : ICredentialPickerResults
public sealed class CredentialPickerResults : ICredentialPickerResults
Public NotInheritable Class CredentialPickerResults Implements ICredentialPickerResults
// This class does not provide a public constructor.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Credential Credential Credential Credential Credential

Gets the opaque credential.

public : IBuffer Credential { get; }
IBuffer Credential();
public IBuffer Credential { get; }
Public ReadOnly Property Credential As IBuffer
var iBuffer = credentialPickerResults.credential;
IBuffer IBuffer IBuffer

A byte buffer that contains the opaque credential. If the credential is not available, a valid, but empty IBuffer object is returned.

CredentialDomainName CredentialDomainName CredentialDomainName CredentialDomainName CredentialDomainName

Gets the domain name portion of the unpacked credential.

public : Platform::String CredentialDomainName { get; }
winrt::hstring CredentialDomainName();
public string CredentialDomainName { get; }
Public ReadOnly Property CredentialDomainName As string
var string = credentialPickerResults.credentialDomainName;
string string string

The domain name of the credential. If the domain name is not available, an empty string is returned.

CredentialPassword CredentialPassword CredentialPassword CredentialPassword CredentialPassword

Gets the password portion of the unpacked credential.

public : Platform::String CredentialPassword { get; }
winrt::hstring CredentialPassword();
public string CredentialPassword { get; }
Public ReadOnly Property CredentialPassword As string
var string = credentialPickerResults.credentialPassword;
string string string

The password of the credential. If the password is not available, an empty string is returned.

CredentialSaved CredentialSaved CredentialSaved CredentialSaved CredentialSaved

Gets the status of the credential save operation.

public : Platform::Boolean CredentialSaved { get; }
bool CredentialSaved();
public bool CredentialSaved { get; }
Public ReadOnly Property CredentialSaved As bool
var bool = credentialPickerResults.credentialSaved;
bool bool bool

Indicates whether the credential was successfully saved by the credential manager. This value is always False if the caller specified the CallerSavesCredential property.

CredentialSaveOption CredentialSaveOption CredentialSaveOption CredentialSaveOption CredentialSaveOption

Gets the state of the "Save Credentials" check box.

public : CredentialSaveOption CredentialSaveOption { get; }
CredentialSaveOption CredentialSaveOption();
public CredentialSaveOption CredentialSaveOption { get; }
Public ReadOnly Property CredentialSaveOption As CredentialSaveOption
var credentialSaveOption = credentialPickerResults.credentialSaveOption;
CredentialSaveOption CredentialSaveOption CredentialSaveOption

Indicates the state of the dialog box "Save" check box. If no check box was displayed, the value is "None."

CredentialUserName CredentialUserName CredentialUserName CredentialUserName CredentialUserName

Gets the user name of the unpacked credential.

public : Platform::String CredentialUserName { get; }
winrt::hstring CredentialUserName();
public string CredentialUserName { get; }
Public ReadOnly Property CredentialUserName As string
var string = credentialPickerResults.credentialUserName;
string string string

The user name of the credential used. If the user name is not available, an empty string is returned.

ErrorCode ErrorCode ErrorCode ErrorCode ErrorCode

Gets the value of the error code.

public : unsigned int ErrorCode { get; }
uint32_t ErrorCode();
public uint ErrorCode { get; }
Public ReadOnly Property ErrorCode As uint
var uint = credentialPickerResults.errorCode;
uint uint uint

The value of the error code. If the operation status indicates a failure, this property contains the extended error information. If the operation status is anything except failure, the value is zero.