FaultCode.CreateSenderFaultCode Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Creates a sender fault code with the specified subcode.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Public Shared Function CreateSenderFaultCode ( _ subCode As FaultCode _ ) As FaultCode
Parameters
- subCode
- Type: System.ServiceModel.FaultCode
A FaultCode object that represents the fault subcode.
Return Value
Type: System.ServiceModel.FaultCodeA FaultCode object with the created SOAP fault subcode in the SubCode property.
| Exception | Condition |
|---|---|
| ArgumentNullException | subCode is Nothing. |
Show: