Table of Contents

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 ICredentials

Credentials to use.

WebCredentials(string, string)

Initializes a new instance of the WebCredentials class.

public WebCredentials(string username, string password)

Parameters

username string

The username.

password string

The password.

WebCredentials(string, string, string)

Initializes a new instance of the WebCredentials class.

public WebCredentials(string username, string password, string domain)

Parameters

username string

Account username.

password string

Account password.

domain string

Account domain.

Properties

Credentials

Gets the Credentials from this instance.

public ICredentials Credentials { get; }

Property Value

ICredentials

The credentials.