Edit

Share via


FaultReason Constructors

Definition

Initializes a new instance of the FaultReason class.

Overloads

FaultReason(IEnumerable<FaultReasonText>)

Initializes a new instance of the FaultReason class using the specified list of fault translations.

FaultReason(FaultReasonText)

Initializes a new instance of the FaultReason class using the specified text element that describes the fault in a specific language.

FaultReason(String)

Initializes a new instance of the FaultReason class using the specified fault description.

FaultReason(IEnumerable<FaultReasonText>)

Source:
FaultReason.cs
Source:
FaultReason.cs

Initializes a new instance of the FaultReason class using the specified list of fault translations.

public:
 FaultReason(System::Collections::Generic::IEnumerable<System::ServiceModel::FaultReasonText ^> ^ translations);
public FaultReason (System.Collections.Generic.IEnumerable<System.ServiceModel.FaultReasonText> translations);
new System.ServiceModel.FaultReason : seq<System.ServiceModel.FaultReasonText> -> System.ServiceModel.FaultReason
Public Sub New (translations As IEnumerable(Of FaultReasonText))

Parameters

translations
IEnumerable<FaultReasonText>

A list of FaultReasonText objects; each object describes the fault in a specific language.

Exceptions

translations is null.

translations is empty or one or more items is null.

Applies to

FaultReason(FaultReasonText)

Source:
FaultReason.cs
Source:
FaultReason.cs

Initializes a new instance of the FaultReason class using the specified text element that describes the fault in a specific language.

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

Parameters

translation
FaultReasonText

An array of FaultReasonText objects that correspond to fault descriptions in different languages.

Applies to

FaultReason(String)

Source:
FaultReason.cs
Source:
FaultReason.cs

Initializes a new instance of the FaultReason class using the specified fault description.

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

Parameters

text
String

A description of the reason the fault occurred.

Applies to