-api-id | -api-type |
---|---|
M:Windows.Security.Credentials.PasswordVault.Add(Windows.Security.Credentials.PasswordCredential) |
winrt method |
Adds a credential to the Credential Locker.
The credential to be added.
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.