Share via


ExchangeWebServiceMailBinding Constructor (Uri, ICredentials, MailSecurityMode)

[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 ExchangeWebServiceMailBinding class using the specified server name, credentials, and security mode.

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, _
    mode As MailSecurityMode _
)
'Usage
Dim serverAddress As Uri
Dim credentials As ICredentials
Dim mode As MailSecurityMode

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

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/".

Exceptions

Exception Condition
ArgumentOutOfRangeException

The MailSecurityMode enumeration is set to a value that is not supported.

.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

ExchangeWebServiceMailBinding Class

ExchangeWebServiceMailBinding Members

ExchangeWebServiceMailBinding Overload

Microsoft.ServiceModel.Channels.Mail.ExchangeWebService Namespace