PasswordCredential PasswordCredential PasswordCredential PasswordCredential PasswordCredential Class

Definition

Represents the password credential store.

public : sealed class PasswordCredential : IPasswordCredential
struct winrt::Windows::Security::Credentials::PasswordCredential : IPasswordCredential
public sealed class PasswordCredential : IPasswordCredential
Public NotInheritable Class PasswordCredential Implements IPasswordCredential
var passwordCredential = new passwordCredential();
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

PasswordCredential() PasswordCredential() PasswordCredential() PasswordCredential() PasswordCredential()

Creates and initializes a new, empty instance of the PasswordCredential object.

PasswordCredential(String, String, String) PasswordCredential(String, String, String) PasswordCredential(String, String, String) PasswordCredential(String, String, String) PasswordCredential(String, String, String)

Creates and initializes a new instance of the PasswordCredential object that contains the provided credential data.

Properties

Password Password Password Password Password

Gets or sets the password string of the credential. This value must not be null or empty, otherwise an exception will be thrown. You must call RetrievePassword first to set the initial value of this property.

Properties Properties Properties Properties Properties

This API is intended for internal use only should not be used in your code.

Resource Resource Resource Resource Resource

Gets or sets the resource of the credential.

UserName UserName UserName UserName UserName

Gets or sets the user name of the credential. This value must not be null or empty, otherwise an exception will be thrown.

Methods

RetrievePassword() RetrievePassword() RetrievePassword() RetrievePassword() RetrievePassword()

Populates the password for the credential. After the operation returns successfully, you can get the password from the Password property.