UserName Property
Collapse the table of content
Expand the table of content

UserNamePasswordClientCredential.UserName Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the user name.

Namespace:  System.ServiceModel.Security
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public string UserName { get; set; }

Property Value

Type: System.String
The user name.

For user name/password authentication, this property is required and cannot be null or empty.

To get or set the UserName property, access the UserNamePasswordClientCredential object from the UserName property from the client object.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft