PasswordVault.Add(PasswordCredential) Method

Definition

Adds a credential to the Credential Locker.

public:
 virtual void Add(PasswordCredential ^ credential) = Add;
void Add(PasswordCredential const& credential);
public void Add(PasswordCredential credential);
function add(credential)
Public Sub Add (credential As PasswordCredential)

Parameters

credential
PasswordCredential

The credential to be added.

Remarks

You can only store up to 20 credentials per app in the Credential Locker. If you try to store more than 20 credentials, you will encounter an Exception.

Note

The limit of 20 credentials per app only applies when using the Credential Locker from a UWP app or from a desktop app running in an AppContainer.

Applies to

See also