FaultReason 類別

定義

提供 SOAP 錯誤的文字描述。Provides a text description of a SOAP fault.

public ref class FaultReason
public class FaultReason
type FaultReason = class
Public Class FaultReason
繼承
FaultReason

備註

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 類別的新執行個體。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 類別的新執行個體。Initializes a new instance of the FaultReason class using the specified list of fault translations.

FaultReason(String)

使用指定的錯誤描述來初始化 FaultReason 類別的新執行個體。Initializes a new instance of the FaultReason class using the specified fault description.

屬性

Translations

取得不同語言的錯誤描述集合。Gets a collection of fault descriptions in different languages.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetMatchingTranslation()

取得錯誤描述 (其語言為目前執行緒所用的語言)。Gets the fault description in the language used by the current thread.

GetMatchingTranslation(CultureInfo)

取得指定語言的錯誤描述。Gets the fault description in the specified language.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

以字串傳回錯誤原因。Returns the fault reason as a string.

適用於