Class WebCredentials
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
WebCredentials wraps an instance of ICredentials used for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
public sealed class WebCredentials : ExchangeCredentials
- Inheritance
-
WebCredentials
- Inherited Members
Constructors
WebCredentials()
Initializes a new instance of the WebCredentials class to use the default network credentials.
public WebCredentials()
WebCredentials(ICredentials)
Initializes a new instance of the WebCredentials class using specified credentials.
public WebCredentials(ICredentials credentials)
Parameters
credentials
ICredentialsCredentials to use.
WebCredentials(string, string)
Initializes a new instance of the WebCredentials class.
public WebCredentials(string username, string password)
Parameters
WebCredentials(string, string, string)
Initializes a new instance of the WebCredentials class.
public WebCredentials(string username, string password, string domain)
Parameters
Properties
Credentials
Gets the Credentials from this instance.
public ICredentials Credentials { get; }
Property Value
- ICredentials
The credentials.