FaultReason FaultReason FaultReason FaultReason Class

定义

提供 SOAP 错误的文本说明。Provides a text description of a SOAP fault.

public ref class FaultReason
public class FaultReason
type FaultReason = class
Public Class FaultReason
继承
FaultReasonFaultReasonFaultReasonFaultReason

注解

FaultReason 类包含一组 System.ServiceModel.FaultReasonText 对象,而每个对象又都包含一条特定语言的错误说明。The FaultReason class contains a set of System.ServiceModel.FaultReasonText objects, each of which contains a description of the fault in a specific language.

构造函数

FaultReason(FaultReasonText) FaultReason(FaultReasonText) FaultReason(FaultReasonText) FaultReason(FaultReasonText)

使用以特定语言描述错误的指定文本元素初始化 FaultReason 类的新实例。Initializes a new instance of the FaultReason class using the specified text element that describes the fault in a specific language.

FaultReason(IEnumerable<FaultReasonText>) FaultReason(IEnumerable<FaultReasonText>) FaultReason(IEnumerable<FaultReasonText>) FaultReason(IEnumerable<FaultReasonText>)

使用指定的错误翻译列表初始化 FaultReason 类的新实例。Initializes a new instance of the FaultReason class using the specified list of fault translations.

FaultReason(String) FaultReason(String) FaultReason(String) FaultReason(String)

使用指定的错误说明初始化 FaultReason 类的新实例。Initializes a new instance of the FaultReason class using the specified fault description.

属性

Translations Translations Translations Translations

获取一个使用不同语言的错误说明的集合。Gets a collection of fault descriptions in different languages.

方法

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetMatchingTranslation() GetMatchingTranslation() GetMatchingTranslation() GetMatchingTranslation()

获取使用当前线程所用语言的错误说明。Gets the fault description in the language used by the current thread.

GetMatchingTranslation(CultureInfo) GetMatchingTranslation(CultureInfo) GetMatchingTranslation(CultureInfo) GetMatchingTranslation(CultureInfo)

获取使用指定语言的错误说明。Gets the fault description in the specified language.

GetType() GetType() GetType() GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

以字符串形式返回错误原因。Returns the fault reason as a string.

适用于