ClientCredentials.UserName Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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)
Syntax
'Declaration
Public ReadOnly Property UserName As UserNamePasswordClientCredential
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.
Remarks
You can use the object returned by this property to configure the credential by calling its members, such as UserName and Password.
Version Information
Silverlight
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
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.