Skip to main content
CredentialPickerOptions.CredentialSaveOption | credentialSaveOption property

Gets or sets the option on saving credentials.

Syntax


var credentialSaveOption = credentialPickerOptions.credentialSaveOption;
credentialPickerOptions.credentialSaveOption = credentialSaveOption;

public CredentialSaveOption CredentialSaveOption { get; set; }

Public Property CredentialSaveOption As CredentialSaveOption

public:
property CredentialSaveOption CredentialSaveOption { 
   CredentialSaveOption get();
   void set (CredentialSaveOption value);
}

Property value

Type: CredentialSaveOption

The option specifies the initial state of the dialog's "Save Credential" check box. The default value is clear (unchecked). This property is ignored if the caller specifies Hidden in the CredentialSaveOption enumeration.

Remarks

If CallerSavesCredential is False and the user checks the Save Credentials check box, the entered credentials are stored in Credential Manager by default. However, if CallerSavesCredential is set to True and the user checks the Save Credentials check box, it is up to caller to store the entered credentials securely. For secure credential storage, please refer to Credential Locker.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Security.Credentials.UI
Windows::Security::Credentials::UI [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Security.Credentials.UI
Windows::Security::Credentials::UI [C++]

Metadata

Windows.winmd

See also

CredentialPickerOptions