FaultCode Constructor (String, String, FaultCode)
[ 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, namespace, and fault subcode.
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.
- subCode
- Type: System.ServiceModel.FaultCode
A FaultCode object that represents the fault subcode.
| Exception | Condition |
|---|---|
| ArgumentNullException | name or ns is Nothing. |
| ArgumentOutOfRangeException | name is an empty string. |
Show: