WindowsMobileMailTransport Class

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

Represents the mail transport for Windows Mobile powered devices.

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

Syntax

'Declaration
Public NotInheritable Class WindowsMobileMailTransport _
    Inherits MailTransport
'Usage
Dim instance As WindowsMobileMailTransport
public sealed class WindowsMobileMailTransport : MailTransport
public ref class WindowsMobileMailTransport sealed : public MailTransport
[<SealedAttribute>]
type WindowsMobileMailTransport =  
    class
        inherit MailTransport
    end

Remarks

This class is used to manage the mail transport for Windows Mobile powered devices. The base class, MailBindingBase, implements most of the common functions such as configuring the message cache and the maximum number of retries.

The Transport property of the WindowsMobileMailBinding class is used to return the mail transport for the mail binding.

Examples

The following example demonstrates how to use the WindowsMobileMailTransport class.

' For a desktop application, use ExchangeWebServiceMailBinding.
binding = New WindowsMobileMailBinding()

binding.MinimumAttachmentSize = 1024
' Set lifetime to 1 day, 10 hours, 20 minutes, and 30 seconds.
binding.TimeToLive = New TimeSpan(1, 10, 20, 30)
binding.Transport.ReceiveRetryCount = 5
// For a desktop application, use ExchangeWebServiceMailBinding.
binding = new WindowsMobileMailBinding();

binding.MinimumAttachmentSize = 1024;
// Set lifetime to 1 day, 10 hours, 20 minutes, and 30 seconds.
binding.TimeToLive = new TimeSpan(1, 10, 20, 30);
binding.Transport.ReceiveRetryCount = 5;

Inheritance Hierarchy

System.Object
  Microsoft.ServiceModel.Channels.Mail.MailTransport
    Microsoft.ServiceModel.Channels.Mail.WindowsMobile.WindowsMobileMailTransport

Thread Safety

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

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

WindowsMobileMailTransport Members

Microsoft.ServiceModel.Channels.Mail.WindowsMobile Namespace