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/".
- credentials
Type: System.Net.ICredentials
An object that is used to access the Exchange server.
- mode
Type: Microsoft.ServiceModel.Channels.Mail.MailSecurityMode
One of the enumeration values that represents the SOAP message security for the binding.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The MailSecurityMode enumeration is set to a value that is not supported. |
.NET Framework Security
- 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.
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