ValidationResult Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |