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.LooksFor Property

Specifies the type of objects to be looked for.

Namespace: DevExpress.Persistent.Validation

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

#Declaration

public Type LooksFor { get; set; }

#Property Value

Type Description
Type

A type of the objects to be tested.

#Remarks

By default, this property is set to the attribute’s target class.

Note

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

See Also