Skip to main content
PasswordCredential.UserName | userName property

Applies to Windows and Windows Phone

Gets or sets the user name of the credential.

Syntax


var userName = passwordCredential.userName;
passwordCredential.userName = userName;

public string UserName { get; set; }

Public Property UserName As String

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

Property value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

The user name of the credential.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

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

Metadata

Windows.winmd

See also

PasswordCredential