Export (0) Print
Expand All

ValidationResultInfo Class

WCF RIA Services

[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.

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

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

[DataContractAttribute(Namespace = "DomainServices")]
public sealed class ValidationResultInfo : IEquatable<ValidationResultInfo>

The ValidationResultInfo type exposes the following members.

  NameDescription
Public methodValidationResultInfo()Initializes a new instance of the ValidationResultInfo class.
Public methodValidationResultInfo(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 methodValidationResultInfo(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

  NameDescription
Public propertyErrorCodeGets or sets custom error code.
Public propertyMessageGets or sets the error message.
Public propertySourceMemberNamesGets or sets the names of the members the error originated from.
Public propertyStackTraceGets or sets the stack trace of the error.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for this object. (Overrides Object.GetHashCode().)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEquatable<ValidationResultInfo>.EqualsTests the current instance against the specified instance for equality
Top

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

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