FaultReasonText 建構函式

定義

初始化 FaultReasonText 類別的新執行個體。Initializes a new instance of the FaultReasonTextclass.

多載

FaultReasonText(String)

初始化 FaultReasonText 類別的新執行個體,這個執行個體會使用指定的錯誤文字。Initializes a new instance of the FaultReasonText class that uses the specified fault text.

FaultReasonText(String, CultureInfo)

初始化 FaultReasonText 類別的新執行個體,這個執行個體會使用指定的 SOAP 錯誤文字和指定的 CultureInfo 物件。Initializes a new instance of the FaultReasonText class that uses the specified SOAP fault text and the specified CultureInfo object.

FaultReasonText(String, String)

初始化 FaultReasonText 類別的新執行個體。Initializes a new instance of the FaultReasonText class.

FaultReasonText(String)

初始化 FaultReasonText 類別的新執行個體,這個執行個體會使用指定的錯誤文字。Initializes a new instance of the FaultReasonText class that uses the specified fault text.

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

參數

text
String

代表 SOAP 錯誤原因的文字。The text that is the SOAP fault reason.

適用於

FaultReasonText(String, CultureInfo)

初始化 FaultReasonText 類別的新執行個體,這個執行個體會使用指定的 SOAP 錯誤文字和指定的 CultureInfo 物件。Initializes a new instance of the FaultReasonText class that uses the specified SOAP fault text and the specified CultureInfo object.

public:
 FaultReasonText(System::String ^ text, System::Globalization::CultureInfo ^ cultureInfo);
public FaultReasonText (string text, System.Globalization.CultureInfo cultureInfo);
new System.ServiceModel.FaultReasonText : string * System.Globalization.CultureInfo -> System.ServiceModel.FaultReasonText
Public Sub New (text As String, cultureInfo As CultureInfo)

參數

text
String

代表 SOAP 錯誤原因的文字。The text that is the reason of the SOAP fault.

cultureInfo
CultureInfo

CultureInfo,說明此描述所用的語言。The CultureInfo describing the language of the description.

適用於

FaultReasonText(String, String)

初始化 FaultReasonText 類別的新執行個體。Initializes a new instance of the FaultReasonText class.

public:
 FaultReasonText(System::String ^ text, System::String ^ xmlLang);
public FaultReasonText (string text, string xmlLang);
new System.ServiceModel.FaultReasonText : string * string -> System.ServiceModel.FaultReasonText
Public Sub New (text As String, xmlLang As String)

參數

text
String

錯誤原因的文字。The text of the fault reason.

xmlLang
String

錯誤所用的語言。The language of the fault.

適用於