PasswordCredential class

0 out of 4 rated this helpful - Rate this topic

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.

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]

Namespace

Windows.Security.Credentials
Windows::Security::Credentials [C++]

Metadata

Windows.winmd

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.