Share via


PasswordCredential Constructors

Definition

Overloads

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.

PasswordCredential()

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

public:
 PasswordCredential();
 PasswordCredential();
public PasswordCredential();
function PasswordCredential()
Public Sub New ()

See also

Applies to

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);
 PasswordCredential(winrt::hstring const& resource, winrt::hstring const& userName, winrt::hstring const& password);
public PasswordCredential(string resource, string userName, string password);
function PasswordCredential(resource, userName, password)
Public Sub New (resource As String, userName As String, password As String)

Parameters

resource
String

Platform::String

winrt::hstring

The resource for which the credentials are used.

userName
String

Platform::String

winrt::hstring

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
String

Platform::String

winrt::hstring

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

Applies to