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.
Пространство имён:
Tessa.Exchange.WebServices.Data
Сборка:
Tessa.Server (в Tessa.Server.dll) Версия: 3.5.0.19
Синтаксис public static implicit operator ExchangeCredentials (
NetworkCredential credentials
)
Public Shared Widening Operator CType (
credentials As NetworkCredential
) As ExchangeCredentials
static implicit operator ExchangeCredentials^ (
NetworkCredential^ credentials
)
F# не поддерживает объявление новых операторов приведения.
Параметры
- credentials
- Тип: System.NetNetworkCredential
The credentials.
Возвращаемое значение
Тип:
ExchangeCredentialsThe result of the conversion.
Примеры
This operator allows you to type:
service.Credentials = new NetworkCredential("username","password");
instead of:
service.Credentials = new WebCredentials(new NetworkCredential("username","password"));
См. также