Class ValidationResult
- Namespace
- Datafication.Core.Connectors
- Assembly
- Datafication.Core.dll
Represents the result of a configuration validation operation.
public class ValidationResult
- Inheritance
-
objectValidationResult
Properties
Errors
Gets the collection of validation errors.
public IReadOnlyList<string> Errors { get; }
Property Value
- IReadOnlyList<string>
IsValid
Gets a value indicating whether the validation was successful.
public bool IsValid { get; }
Property Value
- bool
Methods
Failure(IReadOnlyList<string>)
Creates a failed validation result with the specified error messages.
public static ValidationResult Failure(IReadOnlyList<string> errors)
Parameters
errorsIReadOnlyList<string>The collection of error messages.
Returns
- ValidationResult
A failed validation result.
Failure(string)
Creates a failed validation result with the specified error message.
public static ValidationResult Failure(string error)
Parameters
errorstringThe error message.
Returns
- ValidationResult
A failed validation result.
Success()
Creates a successful validation result.
public static ValidationResult Success()
Returns
- ValidationResult
A successful validation result.