This documentation is archived and is not being maintained.

ExchangeWebServiceMailTransportBindingElement Constructor

Visual Studio 2008

Initializes a new instance of the ExchangeWebServiceMailTransportBindingElement using the specified server name and credentials.

Namespace:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService
Assembly:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (in Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)

public ExchangeWebServiceMailTransportBindingElement(
	Uri serverAddress,
	ICredentials credentials
)

Parameters

serverAddress
Type: System.Uri

An object that contains the address of the Exchange server (that is, the server that is running Microsoft Exchange Server). An example of an Exchange server address is "http://www.fabrikam.com/".

credentials
Type: System.Net.ICredentials

An object that is used to access the Exchange server.

After you initialize a new instance of this class, pass the object in the constructor of a new CustomBinding object.

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5
Show: