DomainServiceFault Class

[WCF RIA Services Version 1 Service Pack 2 is compatible with either .NET framework 4 or .NET Framework 4.5, and with either Silverlight 4 or Silverlight 5.]

Provides a message type used to communicate exception results between the server and the client.

Inheritance Hierarchy

System.Object
  System.ServiceModel.DomainServices.Client.DomainServiceFault

Namespace:  System.ServiceModel.DomainServices.Client
Assembly:  System.ServiceModel.DomainServices.Client.Web (in System.ServiceModel.DomainServices.Client.Web.dll)

Syntax

'Declaration
<DataContractAttribute(Namespace := "DomainServices")> _
Public Class DomainServiceFault
'Usage
Dim instance As DomainServiceFault
[DataContractAttribute(Namespace = "DomainServices")]
public class DomainServiceFault
[DataContractAttribute(Namespace = L"DomainServices")]
public ref class DomainServiceFault
[<DataContractAttribute(Namespace = "DomainServices")>]
type DomainServiceFault =  class end
public class DomainServiceFault

The DomainServiceFault type exposes the following members.

Constructors

  Name Description
Public method DomainServiceFault Initializes a new instance of the DomainServiceFault class.

Top

Properties

  Name Description
Public property ErrorCode Gets or sets the custom code for the error.
Public property ErrorMessage Gets or sets the message that provides details about the error.
Public property IsDomainException Gets or sets a value indicating whether the error information should be reconstructed on the client as a DomainException type.
Public property OperationErrors Gets or sets the operation errors that occurred during this request.
Public property StackTrace Gets or sets the stack trace for the error.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method GetValidationErrors Retrieves the validation errors.
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

System.ServiceModel.DomainServices.Client Namespace