FaultConverter::OnTryCreateFaultMessage Method (Exception^, Message^%)
Tries to create the fault message once the fault has been converted to a SOAP exception.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
protected: virtual bool OnTryCreateFaultMessage( Exception^ exception, [OutAttribute] Message^% message ) abstract
Parameters
- exception
-
Type:
System::Exception^
The SOAP exception.
- message
-
Type:
System.ServiceModel.Channels::Message^%
The fault message returned as an out parameter.
Return Value
Type: System::Booleantrue if fault message was successfully created; otherwise, false. The default is false.
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.
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 3.0
Windows Phone Silverlight
Available since 7.0