CoreUtilsValidateTValue Method (TValue, TValue, IValidatorTValue, Boolean, Boolean, String, ErrorContainer, Boolean, TValue) |
Validates the specified value to validate.
Namespace:
SD.LLBLGen.Pro.Core
Assembly:
SD.LLBLGen.Pro.Core (in SD.LLBLGen.Pro.Core.dll) Version: 5.9.0.0 (5.9.0)
Syntax public static bool Validate<TValue>(
TValue valueToValidate,
TValue originalValue,
IValidator<TValue> validator,
bool checkForDuplicates,
bool throwOnError,
string propertyName,
ErrorContainer loggedErrors,
bool isSoftError,
out TValue correctValue
)
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,
<OutAttribute> ByRef correctValue As TValue
) 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. - correctValue
- Type: TValue
The correct value.
Type Parameters
- TValue
- The type of the value.
Return Value
Type:
BooleanSee Also