Edit

Share via


ValidationItem Class

Definition

[Newtonsoft.Json.JsonConverter(typeof(Microsoft.TeamFoundation.DistributedTask.WebApi.ValidationItemJsonConverter))]
[System.Runtime.Serialization.DataContract]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.TeamFoundation.DistributedTask.WebApi.ExpressionValidationItem))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.TeamFoundation.DistributedTask.WebApi.InputValidationItem))]
public class ValidationItem
type ValidationItem = class
Public Class ValidationItem
Inheritance
ValidationItem
Derived
Attributes
Newtonsoft.Json.JsonConverterAttribute DataContractAttribute KnownTypeAttribute

Constructors

ValidationItem(String)

Properties

IsValid

Tells whether the current input is valid or not

Reason

Reason for input validation failure

Type

Type of validation item

Value

Value to validate. The conditional expression to validate for the input for "expression" type Eg:eq(variables['Build.SourceBranch'], 'refs/heads/master');eq(value, 'refs/heads/master')

Applies to