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

ClientCredentials.UserName Property

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

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)

'Declaration
Public ReadOnly Property UserName As UserNamePasswordClientCredential

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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft