ValidationResultInfo 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.]

Contains information about the error that occurred during execution of an operation on the server.

Inheritance Hierarchy

System.Object
  System.ServiceModel.DomainServices.Client.ValidationResultInfo

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

Syntax

'Declaration
<DataContractAttribute(Namespace := "DomainServices")> _
Public NotInheritable Class ValidationResultInfo _
    Implements IEquatable(Of ValidationResultInfo)
'Usage
Dim instance As ValidationResultInfo
[DataContractAttribute(Namespace = "DomainServices")]
public sealed class ValidationResultInfo : IEquatable<ValidationResultInfo>
[DataContractAttribute(Namespace = L"DomainServices")]
public ref class ValidationResultInfo sealed : IEquatable<ValidationResultInfo^>
[<SealedAttribute>]
[<DataContractAttribute(Namespace = "DomainServices")>]
type ValidationResultInfo =  
    class
        interface IEquatable<ValidationResultInfo>
    end
public final class ValidationResultInfo implements IEquatable<ValidationResultInfo>

The ValidationResultInfo type exposes the following members.

Constructors

  Name Description
Public method ValidationResultInfo() Initializes a new instance of the ValidationResultInfo class.
Public method ValidationResultInfo(String, IEnumerable<String>) Initializes a new instance of the ValidationResultInfo class with a localized error message and a collection of the names of the members the error originated from.
Public method ValidationResultInfo(String, Int32, String, IEnumerable<String>) Initializes a new instance of the ValidationResultInfo class with a localized error, error code, stack trace, and collection of the names of the members the error originated from.

Top

Properties

  Name Description
Public property ErrorCode Gets or sets custom error code.
Public property Message Gets or sets the error message.
Public property SourceMemberNames Gets or sets the names of the members the error originated from.
Public property StackTrace Gets or sets the stack trace of the error.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode Returns the hash code for this object. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEquatable<ValidationResultInfo>.Equals Tests the current instance against the specified instance for equality

Top

Remarks

This information is also sent to the client along with the domain operation results.

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