Export (0) Print
Expand All

FaultCode Class

Represents a SOAP fault code.

System.Object
  System.ServiceModel.FaultCode

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

public class FaultCode

The FaultCode type exposes the following members.

  NameDescription
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFaultCode(String)Initializes a new instance of the FaultCode class.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFaultCode(String, FaultCode)Initializes a new instance of the FaultCode class.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFaultCode(String, String)Initializes a new instance of the FaultCode class with the specified name and namespace.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFaultCode(String, String, FaultCode)Initializes a new instance of the FaultCode class with the specified name, namespace, and fault subcode.
Top

  NameDescription
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsIsPredefinedFaultGets a value that indicates whether the fault is a SOAP 1.1 or SOAP 1.2 fault.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsIsReceiverFaultGets a value that indicates whether the fault is a SOAP 1.1 server fault or a SOAP 1.2 receiver fault.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsIsSenderFaultGets a value that indicates whether the fault is a SOAP 1.1 client fault or a SOAP 1.2 sender fault.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsNameGets the local name of the fault code.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsNamespaceGets the namespace for the fault code.
Public propertySupported by Portable Class LibrarySupported in .NET for Windows Store appsSubCodeGets the fault subcode.
Top

  NameDescription
Public methodStatic memberCreateReceiverFaultCode(FaultCode)Creates a receiver fault code with the specified subcode.
Public methodStatic memberCreateReceiverFaultCode(String, String)Creates a receiver fault code with the specified subcode.
Public methodStatic memberSupported by Portable Class LibrarySupported in .NET for Windows Store appsCreateSenderFaultCode(FaultCode)Creates a sender fault code with the specified subcode.
Public methodStatic memberCreateSenderFaultCode(String, String)Creates a sender fault code with the specified subcode.
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSupported by Portable Class LibrarySupported in .NET for Windows Store appsToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Fault code provides a machine-readable identifier that can be used to programmatically identify the error condition and respond as appropriate. The SOAP specifications define the following fault codes specific to SOAP 1.1 and 1.2.

  • SOAP 1.1. VersionMismatch, MustUnderstand, Client, and Server.

  • SOAP 1.2. VersionMismatch, MustUnderstand, DataEncodingUnknown, Sender, and Receiver.

In addition to those fault codes defined by the SOAP specifications, Windows Communication Foundation (WCF) uses fault codes defined by each Web services specification that it implements.


.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone 8, Silverlight 8.1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft