[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.PageReportModel.Validation.ValidationUtils.Validate

Validate Method

Validate(Length)

Validates a length value against the RDL defined min/max length defaults ("0in","160in").

Declaration
public static Length Validate(Length value)
Parameters
Type Name Description
Length value

A Length value to validate.

Returns
Type Description
Length
Exceptions
Type Condition
ReportDefinitionException

Throws if the value is out of range limit.

Validate<T>(T)

Validates a value to make sure it is valid enum value.

Declaration
public static T Validate<T>(T value) where T : Enum
Parameters
Type Name Description
T value

A value to validate.

Returns
Type Description
T
Type Parameters
Name Description
T
Examples
OrderByCondition value = OrderByCondition.Value;
ValidationUtils.Validate(value);
Exceptions
Type Condition
InvalidEnumArgumentException

Throws if the value is not valid enum of Enum type.