Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MessageFault::CreateFault Method (FaultCode^, FaultReason^, Object^, XmlObjectSerializer^, String^, String^)

 

Returns a new MessageFault object that uses the specified FaultCode, FaultReason, detail object, XmlObjectSerializer, actor, and node values.

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

public:
static MessageFault^ CreateFault(
	FaultCode^ code,
	FaultReason^ reason,
	Object^ detail,
	XmlObjectSerializer^ serializer,
	String^ actor,
	String^ node
)

Parameters

code
Type: System.ServiceModel::FaultCode^

The fault code for the fault message.

reason
Type: System.ServiceModel::FaultReason^

The reason for the fault.

detail
Type: System::Object^

The fault detail object.

serializer
Type: System.Runtime.Serialization::XmlObjectSerializer^

The serializer to use when serializing the detail object.

actor
Type: System::String^

The value of the actor.

node
Type: System::String^

The value of the node.

Return Value

Type: System.ServiceModel.Channels::MessageFault^

A MessageFault object with initial values from the passed in parameters.

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft