Show / Hide Table of Contents

Class ValidationResults

Represents a container for one or more System.ComponentModel.DataAnnotations.ValidationResult.

Inheritance
Object
ValidationResults
Inherited Members
System.Object.ToString()
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Namespace: IRM.ComponentModel.DataAnnotations
Assembly: IRM.dll
Syntax
[Serializable]
public class ValidationResults

Constructors

ValidationResults()

Initializes a new instance of the ValidationResults class.

Declaration
public ValidationResults()

ValidationResults(IEnumerable<ValidationResult>)

Initializes a new instance of the ValidationResults class.

Declaration
public ValidationResults(IEnumerable<ValidationResult> results)
Parameters
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> results

One or more validation results.

ValidationResults(String)

Initializes a new instance of the ValidationResults class by using an error message.

Declaration
public ValidationResults(string errorMessage)
Parameters
String errorMessage

The error message

Properties

IsValid

Gets if all Results is valid.

Declaration
public bool IsValid { get; }
Property Value
Boolean

Results

Gets all the System.ComponentModel.DataAnnotations.ValidationResult.

Declaration
public IList<ValidationResult> Results { get; }
Property Value
System.Collections.Generic.IList<System.ComponentModel.DataAnnotations.ValidationResult>

Extension Methods

ObjectExtensions.DeepClone<T>(T)
AnnotationsExtensions.IsValid(Object)
Back to top Generated by DocFX