PasswordCredential class

Applies to Windows and Windows Phone

Represents the password credential store.

Syntax


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

Attributes

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

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

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

 

 

Show:
© 2014 Microsoft