Click or drag to resize

CoreUtils.Validate<TValue> Method (TValue, TValue, IValidator<TValue>, 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.8.0.0 (5.8.21.0208)
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.Core.IValidator<TValue>
The validator.
checkForDuplicates
Type: System.Boolean
if set to true [check for duplicates].
throwOnError
Type: System.Boolean
if set to true [throw on error].
propertyName
Type: System.String
Name of the property.
loggedErrors
Type: SD.Tools.Algorithmia.GeneralDataStructures.ErrorContainer
The logged errors.
isSoftError
Type: System.Boolean
if set to true 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