Validator MatchesCondition T  Method Kentico 8.1 API Reference
Validates whether the specified value meets the specified condition.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

source
Type: T
A value to validate.
condition
Type: OnlineSystem Func T, OnlineBoolean 
A condition to match.
errorMessage
Type: OnlineSystem String
The error message to report when validation fails.

Return Value

Type: Validator
See Also