Click or drag to resize

CoreUtilsValidateTValue Method (TValue, TValue, IValidatorTValue, Boolean, Boolean, String, ErrorContainer, Boolean)

Validates the specified value to validate.

Namespace:  SD.LLBLGen.Pro.Core
Assembly:  SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.6.0.0 (5.6.19.0117)
Syntax
public static bool Validate<TValue>(
	TValue valueToValidate,
	TValue originalValue,
	IValidator<TValue> validator,
	bool checkForDuplicates,
	bool throwOnError,
	string propertyName,
	ErrorContainer loggedErrors,
	bool isSoftError
)

Parameters

valueToValidate
Type: TValue
The value to validate.
originalValue
Type: TValue
The original value.
validator
Type: SD.LLBLGen.Pro.CoreIValidatorTValue
The validator.
checkForDuplicates
Type: SystemBoolean
if set to true [check for duplicates].
throwOnError
Type: SystemBoolean
if set to true [throw on error].
propertyName
Type: SystemString
Name of the property.
loggedErrors
Type: SD.Tools.Algorithmia.GeneralDataStructuresErrorContainer
The logged errors.
isSoftError
Type: SystemBoolean
if set to the error is considered 'soft', which means it's cleared after it's been read.

Type Parameters

TValue
The type of the value.

Return Value

Type: Boolean
true if valid, false otherwise
See Also