英語で読む

次の方法で共有


ValidationResult Struct

Definition

Represents the result of a validation operation.

C#
public readonly struct ValidationResult
Inheritance
ValidationResult

Properties

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

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

製品 バージョン
Microsoft Testing Platform 1.0.2, 1.1.0, 1.2.1, 1.3.2, 1.4.3, 1.5.3, 1.6.0