Share via


PasswordCredential.Password Property

Definition

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.

public:
 property Platform::String ^ Password { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Password();

void Password(winrt::hstring password);
public string Password { get; set; }
var string = passwordCredential.password;
passwordCredential.password = string;
Public Property Password As String

Property Value

String

Platform::String

winrt::hstring

The password string of the credential.

Applies to