ValidatingObjectBaseValidate Method

Forces calling the DoValidation method and updates the ValidationResults and IsValid properties.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public ValidationResultsCollection Validate()

Return Value

ValidationResultsCollection
A ValidationResultsCollection instance containing the validation results.

Remarks

  Note

Normally you don't need to call this method because the IsValid and ValidationResults properties are automatically re-evaluated when they are accessed and the object has been changed since last validation. Explicit validation can be useful when not every change that affects validation triggers the PropertyChanged event.

See Also