Password​Credential Password​Credential Password​Credential Class

Definition

Represents the password credential store.

public sealed class PasswordCredential : IPasswordCredentialpublic sealed class PasswordCredential : IPasswordCredentialPublic NotInheritable Class PasswordCredential Implements IPasswordCredential
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Constructors

PasswordCredential() PasswordCredential() PasswordCredential()

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

public PasswordCredential()public PasswordCredential()Public Sub New()
Attributes

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.

public PasswordCredential(String resource, String userName, String password)public PasswordCredential(String resource, String userName, String password)Public Sub New(resource As String, userName As String, password As String)
Parameters
resource
System.String System.String System.String

The resource for which the credentials are used.

userName
System.String System.String System.String

The user name that must be present in the credentials.

password
System.String System.String System.String

The password for the created credentials.

Attributes

Properties

Password Password Password

Gets or sets the password string of the credential.

public string Password { get; set; }public string Password { get; set; }Public ReadWrite Property Password As string
Value
string string string

The password string of the credential.

Attributes

Properties Properties Properties

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

public IPropertySet Properties { get; }public IPropertySet Properties { get; }Public ReadOnly Property Properties As IPropertySet
Value
IPropertySet IPropertySet IPropertySet

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

Attributes

Resource Resource Resource

Gets or sets the resource of the credential.

public string Resource { get; set; }public string Resource { get; set; }Public ReadWrite Property Resource As string
Value
string string string

The resource of the credential.

Attributes

UserName UserName UserName

Gets or sets the user name of the credential.

public string UserName { get; set; }public string UserName { get; set; }Public ReadWrite Property UserName As string
Value
string string string

The user name of the credential.

Attributes

Methods

RetrievePassword() RetrievePassword() RetrievePassword()

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

public void RetrievePassword()public void RetrievePassword()Public Function RetrievePassword() As void
Attributes