Breyta

Deila með


FaultConverter.OnTryCreateFaultMessage(Exception, Message) Method

Definition

Tries to create the fault message once the fault has been converted to a SOAP exception.

protected:
 abstract bool OnTryCreateFaultMessage(Exception ^ exception, [Runtime::InteropServices::Out] System::ServiceModel::Channels::Message ^ % message);
protected abstract bool OnTryCreateFaultMessage (Exception exception, out System.ServiceModel.Channels.Message message);
abstract member OnTryCreateFaultMessage : Exception * Message -> bool
Protected MustOverride Function OnTryCreateFaultMessage (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.

Remarks

Channels that support fault conversion implement GetProperty<FaultConverter> and override this method to do the following. If a layer can convert the exception it does; otherwise it calls GetProperty<FaultConverter> on its inner channel. Transport channels should delegate to GetDefaultFaultConverter to get the default SOAP/WS-Addressing fault converter.

Applies to