FaultCode Constructor (String, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the FaultCode class with the specified name and namespace.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- name
- Type: System.String
The local name of the fault code.
- ns
- Type: System.String
The namespace name of the fault code.
| Exception | Condition |
|---|---|
| ArgumentNullException | name or ns is null. |
| ArgumentOutOfRangeException | name is an empty string. |
A FaultCode object is used in conjunction with a MessageFault object to fully represent a SOAP fault.
Show: