Validate C#

Evaluates a condition expressed in C# syntax and raises an error if the condition is not met. This provides a shorthand way of using an If C# Node followed by an Error Node.

Properties

Value

Type: Object
An input variable that will be used in an evaluation. This Node also supports Custom Properties.

Expression

Type: String
An expression in C# syntax (see below for details).

ErrorMessage

Type: String
The error message to raise if Expression evaluates to false.

Remarks

Refer to If C# for examples of Expression. This Node also support Custom Properties which can be referenced in the Expression property.

Expression should be a C#-styled expression. This syntax requires explicit handling of casting and potential null values. If you do not need precise control over casting and null handling, consider using Validate for a VB.Net-styled expression.

See Also

If C#