Skip to main content
PasswordVault class

Applies to Windows and Windows Phone

Represents a Credential Locker of credentials. The contents of the locker are specific to the app or service. Apps and services don't have access to credentials associated with other apps or services.

Syntax


var passwordVault = new Windows.Security.Credentials.PasswordVault();

public sealed class PasswordVault

Public NotInheritable Class PasswordVault

public ref class PasswordVault sealed 

Attributes

[ DualApiPartition()]
[ MarshalingBehavior(Agile)]
[ Threading(Both)]
[ Version(0x06020000)]

Members

The PasswordVault class has these types of members:

Constructors

The PasswordVault class has these constructors.

ConstructorDescription
PasswordVault Creates and initializes a new instance of the PasswordVault object.

 

Methods

The PasswordVault class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Add Adds a credential to the Credential Locker.
FindAllByResource Searches the Credential Locker for credentials matching the resource specified.
FindAllByUserName Searches the Credential Locker for credentials that match the user name specified.
Remove Removes a credential from the Credential Locker.
Retrieve Reads a credential from the Credential Locker.
RetrieveAll Retrieves all of the credentials stored in the Credential Locker.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

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

Storing user credentials (HTML)
Storing user credentials (XAML)