ExchangeCredentials   - преобразование (NetworkCredential to ExchangeCredentials)

Performs an implicit conversion from NetworkCredential to ExchangeCredentials. This allows a NetworkCredential object to be implictly converted to an ExchangeCredential which is useful when setting credentials on an ExchangeService.

Definition

Пространство имён: Tessa.Exchange.WebServices.Data
Сборка: Tessa.Server (в Tessa.Server.dll) Версия: 4.0.4
C#
public static implicit operator ExchangeCredentials (
	NetworkCredential credentials
)

Параметры

credentials  NetworkCredential
The credentials.

Возвращаемое значение

ExchangeCredentials
The result of the conversion.

Пример

This operator allows you to type:
C#
service.Credentials = new NetworkCredential("username","password");
instead of:
C#
service.Credentials = new WebCredentials(new NetworkCredential("username","password"));

См. также