Compartilhar via


MailTransport.Faulted Event

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

Occurs when the mail transport fails.

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

Syntax

'Declaration
Public Event Faulted As EventHandler
'Usage
Dim instance As MailTransport
Dim handler As EventHandler

AddHandler instance.Faulted, handler
public event EventHandler Faulted
public:
 event EventHandler^ Faulted {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
member Faulted : IEvent<EventHandler,
    EventArgs>

Remarks

If the mail transport tries to call Microsoft Exchange Server with invalid credentials, Exchange Server returns an exception and fails. This also occurs if Exchange Server cannot be reached after several tries. A failed mail transport must be disposed.

Use this event to take action upon failure of the mail transport. To check whether the transport has failed before executing code, use the IsFaulted property.

.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

MailTransport Class

MailTransport Members

Microsoft.ServiceModel.Channels.Mail Namespace