Windows Dev Center

PasswordCredential class

Represents the password credential store.

Syntax


var passwordCredential = new Windows.Security.Credentials.PasswordCredential(string, string, string);
var passwordCredential = new Windows.Security.Credentials.PasswordCredential();

Members

The PasswordCredential class has these types of members:

Constructors

The PasswordCredential class has these constructors.

ConstructorDescription
PasswordCredential() Creates and initializes a new, empty instance of the PasswordCredential object.
PasswordCredential(String, String, String) Creates and initializes a new instance of the PasswordCredential object that contains the provided credential data.

 

Methods

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

MethodDescription
RetrievePassword Populates the password for the credential.

 

Properties

The PasswordCredential class has these properties.

PropertyAccess typeDescription

Password

Read/writeGets or sets the password string of the credential.

Properties

Read-onlyGets the properties collection of the credential.

Resource

Read/writeGets or sets the resource of the credential.

UserName

Read/writeGets or sets the user name of the credential.

 

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

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

Metadata

Windows.Foundation.UniversalApiContract.winmd

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

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

Attributes

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

See also

Object

 

 

Show:
© 2015 Microsoft