ValidationResult Struct

Definition

Represents the result of a validation operation.

public readonly struct ValidationResult
type ValidationResult = struct
Public Structure ValidationResult
Inheritance
ValidationResult

Properties

Name Description
ErrorMessage

Gets the error message associated with an invalid validation result.

IsValid

Gets a value indicating whether the validation result is valid.

ValidTask

Gets a task that represents a valid validation result.

Methods

Name Description
Invalid(String)

Creates an invalid validation result with the specified error message.

InvalidTask(String)

Creates a task that represents an invalid validation result with the specified error message.

Valid()

Creates a valid validation result.

Applies to