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 SourceCompositeValidationResult(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 SourceResults
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 SourceAddResult(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. |