Initializes a new instance of the ExchangeWebServiceMailTransportBindingElement using the specified server name and credentials.
Assembly: Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (in Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)
public ExchangeWebServiceMailTransportBindingElement( Uri serverAddress, ICredentials credentials )
- 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/".
- 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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.