Validator.Validate Method (Object, ValidationResults)
Applies the validation logic represented by the receiver on an object, adding the validation results to validationResults.
Namespace: Microsoft.Practices.EnterpriseLibrary.Validation
Assembly: Microsoft.Practices.EnterpriseLibrary.Validation (in Microsoft.Practices.EnterpriseLibrary.Validation.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public void Validate(
Object target,
ValidationResults validationResults
)
'Declaration
Public Sub Validate (
target As Object,
validationResults As ValidationResults
)
public:
void Validate(
Object^ target,
ValidationResults^ validationResults
)
Parameters
- target
Type: System.Object
The object to validate.
- validationResults
Type: Microsoft.Practices.EnterpriseLibrary.Validation.ValidationResults
The validation results to which the outcome of the validation should be stored.