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

ClientCredentials.UserName Property

Gets a credential object that you can use to set the user name and password that the client uses to authenticate itself to a service.

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

public UserNamePasswordClientCredential UserName { get; }

Property Value

Type: System.ServiceModel.Security.UserNamePasswordClientCredential
A UserNamePasswordClientCredential that represents the current user name and password of the client credential.

You can use the object returned by this property to configure the credential by calling its members, such as UserName and Password.


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

© 2016 Microsoft