RuleSet.ValidateTarget(IObjectSpace, Object, ContextIdentifiers) Method
Silently validates an object (without raising the RuleSet.ValidationCompleted event and throwing the ValidationException) and returns a result.
Namespace: DevExpress.Persistent.Validation
Assembly: DevExpress.Persistent.Base.v20.2.dll
NuGet Package: DevExpress.Persistent.Base
Declaration
Parameters
Name | Type | Description |
---|---|---|
targetObjectSpace | IObjectSpace | An IObjectSpace used by a validation target. |
target | Object | An object for which to check the RuleSet. |
contextIDs | ContextIdentifiers | The set of validation contexts. Default contexts are stored in the DefaultContexts enumeration. |
Returns
Type | Description |
---|---|
DevExpress.Persistent.Validation.RuleSetValidationResult | The result of validation. |
Remarks
This method raises the RuleSet.RuleValidated event.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ValidateTarget(IObjectSpace, Object, ContextIdentifiers) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.