Szerkesztés

Megosztás a következőn keresztül:


MessageFault.CreateFault Method

Definition

Returns a new MessageFault object.

Overloads

CreateFault(Message, Int32)

Returns a new MessageFault object that uses the specified Message and the specified maximum buffer size for the message buffer.

CreateFault(FaultCode, FaultReason)

Returns a new MessageFault object that uses the specified FaultCode and FaultReason objects.

CreateFault(FaultCode, String)

Returns a new MessageFault object that uses the specified FaultCode and fault reason.

CreateFault(FaultCode, FaultReason, Object)

Returns a new MessageFault object that uses the specified FaultCode, FaultReason, and detail object.

CreateFault(FaultCode, FaultReason, Object, XmlObjectSerializer)

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

CreateFault(FaultCode, FaultReason, Object, XmlObjectSerializer, String)

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

CreateFault(FaultCode, FaultReason, Object, XmlObjectSerializer, String, String)

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

CreateFault(Message, Int32)

Source:
MessageFault.cs
Source:
MessageFault.cs

Returns a new MessageFault object that uses the specified Message and the specified maximum buffer size for the message buffer.

public:
 static System::ServiceModel::Channels::MessageFault ^ CreateFault(System::ServiceModel::Channels::Message ^ message, int maxBufferSize);
public static System.ServiceModel.Channels.MessageFault CreateFault (System.ServiceModel.Channels.Message message, int maxBufferSize);
static member CreateFault : System.ServiceModel.Channels.Message * int -> System.ServiceModel.Channels.MessageFault
Public Shared Function CreateFault (message As Message, maxBufferSize As Integer) As MessageFault

Parameters

message
Message

The specified Message to be used to create the MessageFault object.

maxBufferSize
Int32

The specified maximum buffer size for the message buffer.

Returns

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

Applies to

CreateFault(FaultCode, FaultReason)

Source:
MessageFault.cs
Source:
MessageFault.cs

Returns a new MessageFault object that uses the specified FaultCode and FaultReason objects.

public:
 static System::ServiceModel::Channels::MessageFault ^ CreateFault(System::ServiceModel::FaultCode ^ code, System::ServiceModel::FaultReason ^ reason);
public static System.ServiceModel.Channels.MessageFault CreateFault (System.ServiceModel.FaultCode code, System.ServiceModel.FaultReason reason);
static member CreateFault : System.ServiceModel.FaultCode * System.ServiceModel.FaultReason -> System.ServiceModel.Channels.MessageFault
Public Shared Function CreateFault (code As FaultCode, reason As FaultReason) As MessageFault

Parameters

code
FaultCode

The fault code for the fault message.

reason
FaultReason

The reason for the fault.

Returns

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

Applies to

CreateFault(FaultCode, String)

Source:
MessageFault.cs
Source:
MessageFault.cs

Returns a new MessageFault object that uses the specified FaultCode and fault reason.

public:
 static System::ServiceModel::Channels::MessageFault ^ CreateFault(System::ServiceModel::FaultCode ^ code, System::String ^ reason);
public static System.ServiceModel.Channels.MessageFault CreateFault (System.ServiceModel.FaultCode code, string reason);
static member CreateFault : System.ServiceModel.FaultCode * string -> System.ServiceModel.Channels.MessageFault
Public Shared Function CreateFault (code As FaultCode, reason As String) As MessageFault

Parameters

code
FaultCode

The fault code for the fault message.

reason
String

The reason for the fault.

Returns

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

Applies to

CreateFault(FaultCode, FaultReason, Object)

Source:
MessageFault.cs
Source:
MessageFault.cs

Returns a new MessageFault object that uses the specified FaultCode, FaultReason, and detail object.

public:
 static System::ServiceModel::Channels::MessageFault ^ CreateFault(System::ServiceModel::FaultCode ^ code, System::ServiceModel::FaultReason ^ reason, System::Object ^ detail);
public static System.ServiceModel.Channels.MessageFault CreateFault (System.ServiceModel.FaultCode code, System.ServiceModel.FaultReason reason, object detail);
static member CreateFault : System.ServiceModel.FaultCode * System.ServiceModel.FaultReason * obj -> System.ServiceModel.Channels.MessageFault
Public Shared Function CreateFault (code As FaultCode, reason As FaultReason, detail As Object) As MessageFault

Parameters

code
FaultCode

The fault code for the fault message.

reason
FaultReason

The reason for the fault.

detail
Object

The fault detail object.

Returns

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

Applies to

CreateFault(FaultCode, FaultReason, Object, XmlObjectSerializer)

Source:
MessageFault.cs
Source:
MessageFault.cs

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

public:
 static System::ServiceModel::Channels::MessageFault ^ CreateFault(System::ServiceModel::FaultCode ^ code, System::ServiceModel::FaultReason ^ reason, System::Object ^ detail, System::Runtime::Serialization::XmlObjectSerializer ^ serializer);
public static System.ServiceModel.Channels.MessageFault CreateFault (System.ServiceModel.FaultCode code, System.ServiceModel.FaultReason reason, object detail, System.Runtime.Serialization.XmlObjectSerializer serializer);
static member CreateFault : System.ServiceModel.FaultCode * System.ServiceModel.FaultReason * obj * System.Runtime.Serialization.XmlObjectSerializer -> System.ServiceModel.Channels.MessageFault
Public Shared Function CreateFault (code As FaultCode, reason As FaultReason, detail As Object, serializer As XmlObjectSerializer) As MessageFault

Parameters

code
FaultCode

The fault code for the fault message.

reason
FaultReason

The reason for the fault.

detail
Object

The fault detail object.

serializer
XmlObjectSerializer

The serializer to use when serializing the detail object.

Returns

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

Applies to

CreateFault(FaultCode, FaultReason, Object, XmlObjectSerializer, String)

Source:
MessageFault.cs
Source:
MessageFault.cs

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

public:
 static System::ServiceModel::Channels::MessageFault ^ CreateFault(System::ServiceModel::FaultCode ^ code, System::ServiceModel::FaultReason ^ reason, System::Object ^ detail, System::Runtime::Serialization::XmlObjectSerializer ^ serializer, System::String ^ actor);
public static System.ServiceModel.Channels.MessageFault CreateFault (System.ServiceModel.FaultCode code, System.ServiceModel.FaultReason reason, object detail, System.Runtime.Serialization.XmlObjectSerializer serializer, string actor);
static member CreateFault : System.ServiceModel.FaultCode * System.ServiceModel.FaultReason * obj * System.Runtime.Serialization.XmlObjectSerializer * string -> System.ServiceModel.Channels.MessageFault
Public Shared Function CreateFault (code As FaultCode, reason As FaultReason, detail As Object, serializer As XmlObjectSerializer, actor As String) As MessageFault

Parameters

code
FaultCode

The fault code for the fault message.

reason
FaultReason

The reason for the fault.

detail
Object

The fault detail object.

serializer
XmlObjectSerializer

The serializer to use when serializing the detail object.

actor
String

The value of the actor.

Returns

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

Applies to

CreateFault(FaultCode, FaultReason, Object, XmlObjectSerializer, String, String)

Source:
MessageFault.cs
Source:
MessageFault.cs

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

public:
 static System::ServiceModel::Channels::MessageFault ^ CreateFault(System::ServiceModel::FaultCode ^ code, System::ServiceModel::FaultReason ^ reason, System::Object ^ detail, System::Runtime::Serialization::XmlObjectSerializer ^ serializer, System::String ^ actor, System::String ^ node);
public static System.ServiceModel.Channels.MessageFault CreateFault (System.ServiceModel.FaultCode code, System.ServiceModel.FaultReason reason, object detail, System.Runtime.Serialization.XmlObjectSerializer serializer, string actor, string node);
static member CreateFault : System.ServiceModel.FaultCode * System.ServiceModel.FaultReason * obj * System.Runtime.Serialization.XmlObjectSerializer * string * string -> System.ServiceModel.Channels.MessageFault
Public Shared Function CreateFault (code As FaultCode, reason As FaultReason, detail As Object, serializer As XmlObjectSerializer, actor As String, node As String) As MessageFault

Parameters

code
FaultCode

The fault code for the fault message.

reason
FaultReason

The reason for the fault.

detail
Object

The fault detail object.

serializer
XmlObjectSerializer

The serializer to use when serializing the detail object.

actor
String

The value of the actor.

node
String

The value of the node.

Returns

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

Applies to