Compartilhar via


MailTransport.FaultException Property

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

Gets the exception returned from Microsoft Exchange Server or the underlying e-mail transport that resulted in the mail transport failure.

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

Syntax

'Declaration
Public ReadOnly Property FaultException As Exception
    Get
'Usage
Dim instance As MailTransport
Dim value As Exception

value = instance.FaultException
public Exception FaultException { get; }
public:
property Exception^ FaultException {
    Exception^ get ();
}
member FaultException : Exception

Property Value

Type: System.Exception
The exception returned from Exchange Server or the underlying e-mail transport.

Remarks

If an exception occurs, the IsFaulted property is set to true.

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