Export (0) Print
Expand All

WindowsMobileMailTransport Class

.NET Framework 3.5

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)

Public NotInheritable Class WindowsMobileMailTransport _
	Inherits MailTransport
Dim instance As WindowsMobileMailTransport

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.

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


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

Community Additions

© 2015 Microsoft