FaultCode Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the FaultCode class.
FaultCode(String) |
Initializes a new instance of the FaultCode class. |
FaultCode(String, FaultCode) |
Initializes a new instance of the FaultCode class. |
FaultCode(String, String) |
Initializes a new instance of the FaultCode class with the specified name and namespace. |
FaultCode(String, String, FaultCode) |
Initializes a new instance of the FaultCode class with the specified name, namespace, and fault subcode. |
- Source:
- FaultCode.cs
- Source:
- FaultCode.cs
Initializes a new instance of the FaultCode class.
public:
FaultCode(System::String ^ name);
public FaultCode(string name);
new System.ServiceModel.FaultCode : string -> System.ServiceModel.FaultCode
Public Sub New (name As String)
Parameters
- name
- String
The name of the fault code.
Applies to
.NET 10 (package-provided) i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- FaultCode.cs
- Source:
- FaultCode.cs
Initializes a new instance of the FaultCode class.
public:
FaultCode(System::String ^ name, System::ServiceModel::FaultCode ^ subCode);
public FaultCode(string name, System.ServiceModel.FaultCode subCode);
new System.ServiceModel.FaultCode : string * System.ServiceModel.FaultCode -> System.ServiceModel.FaultCode
Public Sub New (name As String, subCode As FaultCode)
Parameters
- name
- String
The name of the fault code.
- subCode
- FaultCode
The fault subcode.
Applies to
.NET 10 (package-provided) i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- FaultCode.cs
- Source:
- FaultCode.cs
Initializes a new instance of the FaultCode class with the specified name and namespace.
public:
FaultCode(System::String ^ name, System::String ^ ns);
public FaultCode(string name, string ns);
new System.ServiceModel.FaultCode : string * string -> System.ServiceModel.FaultCode
Public Sub New (name As String, ns As String)
Parameters
- name
- String
The local name of the fault code.
- ns
- String
The namespace name of the fault code.
Exceptions
name
or ns
is null
.
name
is an empty string.
Remarks
A FaultCode object is used in conjunction with a MessageFault object to fully represent a SOAP fault.
Applies to
.NET 10 (package-provided) i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- FaultCode.cs
- Source:
- FaultCode.cs
Initializes a new instance of the FaultCode class with the specified name, namespace, and fault subcode.
public:
FaultCode(System::String ^ name, System::String ^ ns, System::ServiceModel::FaultCode ^ subCode);
public FaultCode(string name, string ns, System.ServiceModel.FaultCode subCode);
new System.ServiceModel.FaultCode : string * string * System.ServiceModel.FaultCode -> System.ServiceModel.FaultCode
Public Sub New (name As String, ns As String, subCode As FaultCode)
Parameters
- name
- String
The local name of the fault code.
- ns
- String
The namespace name of the fault code.
Exceptions
name
or ns
is null
.
name
is an empty string.
Applies to
.NET 10 (package-provided) i inne wersje
Produkt | Wersje |
---|---|
.NET | Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Opinia o produkcie .NET
.NET to projekt typu open source. Wybierz link, aby przekazać opinię: