共用方式為


ExchangeWebServiceMailTransportBindingElement Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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)

Syntax

'Declaration
Public Sub New ( _
    serverAddress As Uri, _
    credentials As ICredentials _
)
'Usage
Dim serverAddress As Uri
Dim credentials As ICredentials

Dim instance As New ExchangeWebServiceMailTransportBindingElement(serverAddress, _
    credentials)
public ExchangeWebServiceMailTransportBindingElement(
    Uri serverAddress,
    ICredentials credentials
)
public:
ExchangeWebServiceMailTransportBindingElement(
    Uri^ serverAddress, 
    ICredentials^ credentials
)
new : 
        serverAddress:Uri * 
        credentials:ICredentials -> ExchangeWebServiceMailTransportBindingElement

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 "https://www.fabrikam.com/".

Remarks

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

.NET Framework Security

Platforms

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.

Version Information

.NET Compact Framework

Supported in: 3.5

See Also

Reference

ExchangeWebServiceMailTransportBindingElement Class

ExchangeWebServiceMailTransportBindingElement Members

Microsoft.ServiceModel.Channels.Mail.ExchangeWebService Namespace