Číst v angličtině Upravit

Sdílet prostřednictvím


FaultConverter.OnTryCreateFaultMessage(Exception, Message) Method

Definition

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

C#
protected abstract bool OnTryCreateFaultMessage (Exception exception, out System.ServiceModel.Channels.Message message);

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

Produkt Verze
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0