Share via


PasswordCredential.UserName Property

Definition

Gets or sets the user name of the credential. This value must not be null or empty, otherwise an exception will be thrown.

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

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

Property Value

String

Platform::String

winrt::hstring

The user name of the credential.

Applies to