PasswordVault.Add | add method

Applies to Windows and Windows Phone

Adds a credential to the Credential Locker.

Syntax


public void Add(
  PasswordCredential credential
)

Parameters

credential

Type: PasswordCredential

The credential to be added.

Remarks

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

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

PasswordVault

 

 

Show:
© 2014 Microsoft