Represents the password credential store.
Syntax
var passwordCredential = new Windows.Security.Credentials.PasswordCredential(string, string, string); var passwordCredential = new Windows.Security.Credentials.PasswordCredential();
Attributes
- ActivatableAttribute(Windows.Security.Credentials.ICredentialFactory, NTDDI_WIN8)
- ActivatableAttribute(NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- ThreadingAttribute(Both)
- VersionAttribute(NTDDI_WIN8)
Members
The PasswordCredential class has these types of members:
Constructors
The PasswordCredential class has these constructors.
| Constructor | Description |
|---|---|
| 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.
| Method | Description |
|---|---|
| RetrievePassword | Populates the password for the credential. |
Properties
The PasswordCredential class has these properties.
| Property | Access type | Description |
|---|---|---|
| Read/write | Gets or sets the password string of the credential. | |
| Read-only | Gets the properties collection of the credential. | |
| Read/write | Gets or sets the resource of the credential. | |
| Read/write | Gets 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] |
|
Namespace |
|
|
Metadata |
|
Build date: 12/4/2012