Password​Credential 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// You can use this class in JavaScript.
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()

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

public : PasswordCredential()public PasswordCredential()Public Sub New()// You can use this method in JavaScript.
See Also

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.

public : PasswordCredential(PlatForm::String resource, PlatForm::String userName, PlatForm::String password)public PasswordCredential(String resource, String userName, String password)Public Sub New(resource As String, userName As String, password As String)// You can use this method in JavaScript.
Parameters
resource
PlatForm::String String String String

The resource for which the credentials are used.

userName
PlatForm::String String String String

The user name that must be present in the credentials. This value must not be null or empty, otherwise an exception will be thrown.

password
PlatForm::String String String String

The password for the created credentials. This value must not be null or empty, otherwise an exception will be thrown.

Properties

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.

public : PlatForm::String Password { get; set; }public string Password { get; set; }Public ReadWrite Property Password As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The password string of the credential.

Properties 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// You can use this property in JavaScript.
Value
IPropertySet IPropertySet IPropertySet IPropertySet

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

Resource Resource Resource Resource

Gets or sets the resource of the credential.

public : PlatForm::String Resource { get; set; }public string Resource { get; set; }Public ReadWrite Property Resource As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The resource of the credential.

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.

public : PlatForm::String UserName { get; set; }public string UserName { get; set; }Public ReadWrite Property UserName As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The user name of the credential.

Methods

RetrievePassword() 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// You can use this method in JavaScript.