FaultCode Constructor (String, String)
Collapse the table of content
Expand the table of content

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.

Namespace:  System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public FaultCode(
	string name,
	string ns
)

Parameters

name
Type: System.String
The local name of the fault code.
ns
Type: System.String
The namespace name of the fault code.

ExceptionCondition
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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft