Show / Hide Table of Contents

    Class CompositeValidationResult

    Class that extends a System.ComponentModel.DataAnnotations.ValidationResult, composed of multiple results.

    Inheritance
    System.Object
    System.ComponentModel.DataAnnotations.ValidationResult
    CompositeValidationResult
    Inherited Members
    System.ComponentModel.DataAnnotations.ValidationResult.Success
    System.ComponentModel.DataAnnotations.ValidationResult.ToString()
    System.ComponentModel.DataAnnotations.ValidationResult.ErrorMessage
    System.ComponentModel.DataAnnotations.ValidationResult.MemberNames
    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)
    Namespace: Fibula.Common.Utilities
    Assembly: Fibula.Common.Utilities.dll
    Syntax
    public class CompositeValidationResult : ValidationResult

    Constructors

    | Improve this Doc View Source

    CompositeValidationResult(String)

    Initializes a new instance of the CompositeValidationResult class.

    Declaration
    public CompositeValidationResult(string errorMessage)
    Parameters
    Type Name Description
    System.String errorMessage

    An error message to initialize the result with.

    Properties

    | Improve this Doc View Source

    Results

    Gets the collection of results in this composite result.

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

    Methods

    | Improve this Doc View Source

    AddResult(ValidationResult)

    Adds a result to this composite's list.

    Declaration
    public void AddResult(ValidationResult validationResult)
    Parameters
    Type Name Description
    System.ComponentModel.DataAnnotations.ValidationResult validationResult

    The result to add.

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.