MailTransport.FaultException Property
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)
'Declaration
Public ReadOnly Property FaultException As Exception
'Usage
Dim instance As MailTransport
Dim value As Exception
value = instance.FaultException
public Exception FaultException { get; }
public:
property Exception^ FaultException {
Exception^ get ();
}
public function get FaultException () : Exception
Type: System.Exception
The exception returned from Exchange Server or the underlying e-mail transport.
If an exception occurs, the IsFaulted property is set to true.
A failed mail transport must be disposed.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
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.
Supported in: 3.5