Edit

Share via


FaultConverter.TryCreateFaultMessage(Exception, Message) Method

Definition

Wraps OnTryCreateFaultMessage(Exception, Message) with error checking.

public:
 bool TryCreateFaultMessage(Exception ^ exception, [Runtime::InteropServices::Out] System::ServiceModel::Channels::Message ^ % message);
public bool TryCreateFaultMessage (Exception exception, out System.ServiceModel.Channels.Message message);
member this.TryCreateFaultMessage : Exception * Message -> bool
Public Function TryCreateFaultMessage (exception As Exception, ByRef message As Message) As Boolean

Parameters

exception
Exception

The SOAP exception.

message
Message

The fault message returned as an out parameter.

Returns

true if fault message was successfully created; otherwise, false. The default is false.

Exceptions

Remarks

OnTryCreateFaultMessage is an abstract class that you must implement. The current method wraps several error tests around a call to that method.

Applies to