Table of Contents

Class ValidationResult

Namespace
Datafication.Core.Connectors
Assembly
Datafication.Core.dll

Represents the result of a configuration validation operation.

public class ValidationResult
Inheritance
object
ValidationResult

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

errors IReadOnlyList<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

error string

The error message.

Returns

ValidationResult

A failed validation result.

Success()

Creates a successful validation result.

public static ValidationResult Success()

Returns

ValidationResult

A successful validation result.