This documentation is archived and is not being maintained.

ExchangeWebServiceMailBinding Class

Visual Studio 2008

Represents the mail binding for Exchange Web Services.

Namespace:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService
Assembly:  Microsoft.ServiceModel.Channels.Mail.ExchangeWebService (in Microsoft.ServiceModel.Channels.Mail.ExchangeWebService.dll)

public ref class ExchangeWebServiceMailBinding sealed : public MailBindingBase

This is a sealed class that represents the mail binding that is used to construct an Exchange Web Services transport for the desktop.

The base class, MailBindingBase, contains most of the functionality used by this class.

This class includes a collection of binding elements such as an encoding element and a transport binding element. The predefined encoding element for this class is TextMessageEncodingBindingElement, and the predefined transport binding element is ExchangeWebServiceMailTransportBindingElement.

The desktop computer that is using the Exchange Web Services transport is assumed to be online. Only the mail transport that is used in Windows Mobile devices supports scenarios in which the device might be offline for a while.

NoteNote:

This class is included with the .NET Compact Framework version 3.5, but it requires the .NET Framework version 3.0 or later at run time.

The following example shows how to use the ExchangeWebServiceMailBinding class in the context of sending and receiving messages.

The custom serializer is not specific to the Exchange Server mail transport and is not included in this example.

No code example is currently available or this language may not be supported.

System::Object
  System.ServiceModel.Channels::Binding
    Microsoft.ServiceModel.Channels.Mail::MailBindingBase
      Microsoft.ServiceModel.Channels.Mail.ExchangeWebService::ExchangeWebServiceMailBinding

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.

.NET Compact Framework

Supported in: 3.5
Show: