UserNameCredential Class

The UserNameCredential class provides a user name, password, and domain name that enable you to authenticate a client to a WCF or Web service, or to a proxy server.

Invoke objects of the UserNameCredential class from the UserName property of WCFClientCredential, HTTPDigestCredential, or WindowsCredential class objects.

Properties

UserNameCredential property Type Description
UserName String Specifies a user name
Password String Specifies a password
Domain String Specifies a domain that the user belongs to
Related reference
HttpDigestCredential Class
WindowsCredential Class