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.12.0.0 (5.12.0)
Syntaxpublic static bool Validate<TValue>(
	TValue valueToValidate,
	TValue originalValue,
	IValidator<TValue> validator,
	bool checkForDuplicates,
	bool throwOnError,
	string propertyName,
	ErrorContainer loggedErrors,
	bool isSoftError
)
Public Shared Function Validate(Of TValue) ( 
	valueToValidate As TValue,
	originalValue As TValue,
	validator As IValidator(Of TValue),
	checkForDuplicates As Boolean,
	throwOnError As Boolean,
	propertyName As String,
	loggedErrors As ErrorContainer,
	isSoftError As Boolean
) As Boolean
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: 
Booleantrue if valid, false otherwise
See Also