Skip to main content
.NET Framework 4.6.2+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RuleObjectExistsAttribute.IncludeCurrentObject Property

Specifies whether to check the current business object by this rule.

Namespace: DevExpress.Persistent.Validation

Assembly: DevExpress.Persistent.Base.v24.2.dll

#Declaration

public bool IncludeCurrentObject { get; set; }

#Property Value

Type Description
Boolean

true if the current object is included into the search scope; otherwise, false.

#Remarks

By default, this property is set to false.

Note

When defining the RuleObjectExistsAttribute in code, the value for the IncludeCurrentObject property is passed as a named parameter. This means that you do not have to specify it. However, when specifying, use the following format: IncludeCurrentObject = True (IncludeCurrentObject := True, in Visual Basic).

See Also