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 | |
---|---|---|
ValidationResultInfo(String, IEnumerable<String>) | Initializes a new instance of the ValidationResultInfo class. | |
ValidationResultInfo(String, Int32, String, IEnumerable<String>) | Initializes a new instance of the ValidationResultInfo class. |
Top
Properties
Name | Description | |
---|---|---|
ErrorCode | Gets or sets the custom error code. | |
Message | Gets or sets the error message. | |
SourceMemberNames | Gets or sets the names of the members the error originated from. | |
StackTrace | Gets or sets the stack trace of the error. |
Top
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Returns the hash code for this object. (Overrides Object.GetHashCode().) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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.