RuleSet.ValidateTarget(IObjectSpace, Object, ContextIdentifiers) Method
In This Article
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.v24.2.dll
NuGet Package: DevExpress.Persistent.Base
#Declaration
public RuleSetValidationResult ValidateTarget(
IObjectSpace targetObjectSpace,
object target,
ContextIdentifiers contextIDs
)
#Parameters
Name | Type | Description |
---|---|---|
target |
IObject |
An IObject |
target | Object | An object for which to check the Rule |
context |
Context |
The set of validation contexts. Default contexts are stored in the Default |
#Returns
Type | Description |
---|---|
DevExpress. |
The result of validation. |
#Remarks
This method raises the RuleSet.RuleValidated event.
See Also