Show / Hide Table of Contents

Class ValidationResultExtensions

Extension methods for IDataValidationResult

Inheritance
System.Object
ValidationResultExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Validation
Assembly: Kephas.Data.dll
Syntax
public static class ValidationResultExtensions

Methods

| Improve this Doc View Source

GetErrors(IDataValidationResult)

Gets only the errors items from this validation result.

Declaration
public static IEnumerable<IDataValidationResultItem> GetErrors(this IDataValidationResult result)
Parameters
Type Name Description
IDataValidationResult result

The validation result.

Returns
Type Description
System.Collections.Generic.IEnumerable<IDataValidationResultItem>

An enumration of errors.

| Improve this Doc View Source

HasErrors(IDataValidationResult)

Gets a value indicating whether the validation result has errors.

Declaration
public static bool HasErrors(this IDataValidationResult result)
Parameters
Type Name Description
IDataValidationResult result

The validation result.

Returns
Type Description
System.Boolean

true if the validation result contains errors, false if not.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX