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.Server.ValidationResultInfo
Namespace: System.ServiceModel.DomainServices.Server
Assembly: System.ServiceModel.DomainServices.Server (in System.ServiceModel.DomainServices.Server.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 | |
---|---|---|
ValidationResultInfo() | Initializes a new instance of the ValidationResultInfo class. | |
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. | |
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 | |
---|---|---|
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 | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | Returns the hash code for this object. (Overrides Object.GetHashCode().) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
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.