FaultException 构造函数

定义

初始化 FaultException 类的新实例。

重载

FaultException()

初始化 FaultException 类的新实例。

FaultException(String, FaultCode, String)

使用指定的原因、错误代码和操作值初始化 FaultException 类的新实例。

FaultException(String, FaultCode)

使用指定的原因和 SOAP 错误代码初始化 FaultException 类的新实例。

FaultException(FaultReason, FaultCode)

使用指定的原因和错误代码初始化 FaultException 类的新实例。

FaultException(MessageFault, String)

使用指定的消息错误值和提供的操作字符串初始化 FaultException 类的新实例。

FaultException(FaultReason, FaultCode, String)

使用指定的原因、错误代码和操作值初始化 FaultException 类的新实例。

FaultException(String)

用指定的错误原因初始化 FaultException 类的新实例。

FaultException(FaultReason)

使用指定的原因初始化 FaultException 类的新实例。

FaultException(MessageFault)

使用指定的消息错误值初始化 FaultException 类的新实例。

FaultException(SerializationInfo, StreamingContext)

在将流反序列化到 FaultException 对象时,使用指定的序列化信息和上下文初始化 FaultException 类的新实例。

FaultException()

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

初始化 FaultException 类的新实例。

public:
 FaultException();
public FaultException ();
Public Sub New ()

适用于

FaultException(String, FaultCode, String)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

使用指定的原因、错误代码和操作值初始化 FaultException 类的新实例。

public:
 FaultException(System::String ^ reason, System::ServiceModel::FaultCode ^ code, System::String ^ action);
public FaultException (string reason, System.ServiceModel.FaultCode code, string action);
new System.ServiceModel.FaultException : string * System.ServiceModel.FaultCode * string -> System.ServiceModel.FaultException
Public Sub New (reason As String, code As FaultCode, action As String)

参数

reason
String

SOAP 错误的原因。

code
FaultCode

SOAP 错误的错误代码。

action
String

SOAP 错误的操作值。

适用于

FaultException(String, FaultCode)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

使用指定的原因和 SOAP 错误代码初始化 FaultException 类的新实例。

public:
 FaultException(System::String ^ reason, System::ServiceModel::FaultCode ^ code);
public FaultException (string reason, System.ServiceModel.FaultCode code);
new System.ServiceModel.FaultException : string * System.ServiceModel.FaultCode -> System.ServiceModel.FaultException
Public Sub New (reason As String, code As FaultCode)

参数

reason
String

SOAP 错误的原因。

code
FaultCode

该错误的 SOAP 错误代码。

适用于

FaultException(FaultReason, FaultCode)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

使用指定的原因和错误代码初始化 FaultException 类的新实例。

public:
 FaultException(System::ServiceModel::FaultReason ^ reason, System::ServiceModel::FaultCode ^ code);
public FaultException (System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code);
new System.ServiceModel.FaultException : System.ServiceModel.FaultReason * System.ServiceModel.FaultCode -> System.ServiceModel.FaultException
Public Sub New (reason As FaultReason, code As FaultCode)

参数

reason
FaultReason

SOAP 错误的原因。

code
FaultCode

SOAP 错误的错误代码。

适用于

FaultException(MessageFault, String)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

使用指定的消息错误值和提供的操作字符串初始化 FaultException 类的新实例。

public:
 FaultException(System::ServiceModel::Channels::MessageFault ^ fault, System::String ^ action);
public FaultException (System.ServiceModel.Channels.MessageFault fault, string action);
new System.ServiceModel.FaultException : System.ServiceModel.Channels.MessageFault * string -> System.ServiceModel.FaultException
Public Sub New (fault As MessageFault, action As String)

参数

fault
MessageFault

包含要使用的默认 SOAP 错误值的消息错误。

action
String

SOAP 错误的操作。

适用于

FaultException(FaultReason, FaultCode, String)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

使用指定的原因、错误代码和操作值初始化 FaultException 类的新实例。

public:
 FaultException(System::ServiceModel::FaultReason ^ reason, System::ServiceModel::FaultCode ^ code, System::String ^ action);
public FaultException (System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code, string action);
new System.ServiceModel.FaultException : System.ServiceModel.FaultReason * System.ServiceModel.FaultCode * string -> System.ServiceModel.FaultException
Public Sub New (reason As FaultReason, code As FaultCode, action As String)

参数

reason
FaultReason

SOAP 错误的原因。

code
FaultCode

SOAP 错误的错误代码。

action
String

SOAP 错误的操作值。

适用于

FaultException(String)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

用指定的错误原因初始化 FaultException 类的新实例。

public:
 FaultException(System::String ^ reason);
public FaultException (string reason);
new System.ServiceModel.FaultException : string -> System.ServiceModel.FaultException
Public Sub New (reason As String)

参数

reason
String

错误的原因。

适用于

FaultException(FaultReason)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

使用指定的原因初始化 FaultException 类的新实例。

public:
 FaultException(System::ServiceModel::FaultReason ^ reason);
public FaultException (System.ServiceModel.FaultReason reason);
new System.ServiceModel.FaultException : System.ServiceModel.FaultReason -> System.ServiceModel.FaultException
Public Sub New (reason As FaultReason)

参数

reason
FaultReason

SOAP 错误的原因。

适用于

FaultException(MessageFault)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

使用指定的消息错误值初始化 FaultException 类的新实例。

public:
 FaultException(System::ServiceModel::Channels::MessageFault ^ fault);
public FaultException (System.ServiceModel.Channels.MessageFault fault);
new System.ServiceModel.FaultException : System.ServiceModel.Channels.MessageFault -> System.ServiceModel.FaultException
Public Sub New (fault As MessageFault)

参数

fault
MessageFault

包含默认 SOAP 错误值的消息错误。

适用于

FaultException(SerializationInfo, StreamingContext)

Source:
FaultException.cs
Source:
FaultException.cs
Source:
FaultException.cs

在将流反序列化到 FaultException 对象时,使用指定的序列化信息和上下文初始化 FaultException 类的新实例。

protected:
 FaultException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected FaultException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.FaultException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.FaultException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

参数

info
SerializationInfo

从流中重新构造 FaultException 对象所需的序列化信息。

context
StreamingContext

重新构造 FaultException 对象所需的流上下文。

适用于