Click or drag to resize

ValidationResult Class

[This is preliminary documentation and is subject to change.]

Defines a result from validation for a single object
Inheritance Hierarchy
SystemObject
  CSInfrastructure.FluentValidationValidationResult

Namespace:  CSInfrastructure.FluentValidation
Assembly:  CSInfrastructure (in CSInfrastructure.dll) Version: 1.13.0+Branch.master.Sha.d583fc64569355d188a9c0818d257b6d0d3e1339
Syntax
C#
public sealed class ValidationResult

The ValidationResult type exposes the following members.

Constructors
  NameDescription
Public methodValidationResult(IObjectIdentifier, IValidationMessage, ValidationMessageSeverity)
Creates a new instance for the given identifier with the provided message and severity (defaults to Error)
Public methodValidationResult(IObjectIdentifier, IReadOnlyCollectionIValidationMessage, ValidationMessageSeverity)
Creates a new instance for the given identifier with the provided messages and severity (defaults to Error)
Top
Properties
  NameDescription
Public propertyIdentifier
Information that identifies the object, module independent
Public propertySeverity
The severity of the validation result
Public propertyValidationResults
The list of validation message, applicable to this object
Top
Methods
  NameDescription
Public methodStatic memberCode exampleFormat
Formats the provided list of validation results into a human-readable string
Public methodCode exampleToString
Returns a human-readable string for this validation result.
(Overrides ObjectToString.)
Top
See Also