Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OnTryCreateFaultMessage Method

FaultConverter.OnTryCreateFaultMessage Method

When implemented in a derived class, tries to create the fault message after the fault has been converted to a SOAP exception.

Namespace:  System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

protected abstract bool OnTryCreateFaultMessage(
	Exception exception,
	out Message message
)

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.Boolean
true if fault message was successfully created; otherwise, false. The default is false.

ExceptionCondition
ArgumentNullException

OnTryCreateException returned true but message is null.

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.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft