Share via


ValidationResultInfo Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The data contract of an error that has occurred during the execution of an operation on the server.

Inheritance Hierarchy

System.Object
  System.Web.Http.Data.ValidationResultInfo

Namespace:  System.Web.Http.Data
Assembly:  System.Web.Http.Data (in System.Web.Http.Data.dll)

Syntax

'Declaration
<DataContractAttribute> _
Public NotInheritable Class ValidationResultInfo _
    Implements IEquatable(Of ValidationResultInfo)
[DataContractAttribute]
public sealed class ValidationResultInfo : IEquatable<ValidationResultInfo>
[DataContractAttribute]
public ref class ValidationResultInfo sealed : IEquatable<ValidationResultInfo^>
[<Sealed>]
[<DataContractAttribute>]
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(String, IEnumerable<String>) Initializes a new instance of the ValidationResultInfo class.
Public method ValidationResultInfo(String, Int32, String, IEnumerable<String>) Initializes a new instance of the ValidationResultInfo class.

Top

Properties

  Name Description
Public property ErrorCode Gets or sets the 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 Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Returns the hash code for this object. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEquatable<ValidationResultInfo>.Equals Indicates whether the current object is equal to another object of the same type.

Top

Remarks

This information is sent back along with the action result(s) to the client.

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.Web.Http.Data Namespace