Compartilhar via


ExchangeWebServiceMailTransport 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 ExchangeWebServiceMailTransport class.

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 ExchangeWebServiceMailTransport(serverAddress, _
    credentials)
public ExchangeWebServiceMailTransport(
    Uri serverAddress,
    ICredentials credentials
)
public:
ExchangeWebServiceMailTransport(
    Uri^ serverAddress, 
    ICredentials^ credentials
)
new : 
        serverAddress:Uri * 
        credentials:ICredentials -> ExchangeWebServiceMailTransport

Parameters

  • serverAddress
    Type: System.Uri
    A Uri object that contains the address of the Exchange server (that is, the server that is running Microsoft Exchange Server). An example of the address is https://fabrikam.com/.

Exceptions

Exception Condition
ArgumentNullException

serverName is nulla null reference (Nothing in Visual Basic).

.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

ExchangeWebServiceMailTransport Class

ExchangeWebServiceMailTransport Members

Microsoft.ServiceModel.Channels.Mail.ExchangeWebService Namespace