Click or drag to resize
Validator Class
Provides fluent interface for validation of user input.
Inheritance Hierarchy
SystemObject
  CMS.HelpersValidator

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public class Validator

The Validator type exposes the following members.

Constructors
  NameDescription
Public methodValidator
Top
Methods
  NameDescription
Public methodIsBoolean
Determines whether source control's value is boolean.
Public methodIsCodeName
Determines whether source control's value is code name.
Public methodIsDouble
Determines whether source control's value is double.
Public methodIsEmail
Determines whether source control's value is valid email.
Public methodIsFileName
Determines whether source control's value matches file name.
Public methodIsFolderName
Determines whether source control's value matches folder name.
Public methodIsIdentificator Obsolete.
Determines whether source control's value is identifier.
Public methodIsIdentifier
Determines whether source control's value is identifier.
Public methodIsInteger
Determines whether source control's value is integer.
Public methodIsPositiveNumber
Determines whether source control's value is positive number.
Public methodIsRegularExp
Determines whether source control's value matches the regular expression.
Public methodIsUserName
Determines whether source control's value is user name.
Public methodMatchesConditionT
Validates whether the specified value meets the specified condition.
Public methodNotEmpty
Validates source control for emptiness.
Public methodNotNull
Validates source control for null value.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Protected fieldmIsValid
A value indicating whether the validation was successful.
Protected fieldmResult
The last validation error message.
Top
Properties
  NameDescription
Public propertyIsValid
Gets a value indicating whether the validation was successful.
Public propertyResult
Gets the last validation error message.
Top
See Also