共用方式為


MailTransport.IsFaulted Property

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

Gets a value that indicates whether the mail transport has failed.

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

Syntax

'Declaration
Public ReadOnly Property IsFaulted As Boolean
    Get
'Usage
Dim instance As MailTransport
Dim value As Boolean

value = instance.IsFaulted
public bool IsFaulted { get; }
public:
property bool IsFaulted {
    bool get ();
}
member IsFaulted : bool

Property Value

Type: System.Boolean
true if the mail transport has failed; otherwise, false.

Remarks

For example, 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.

.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