Skip to main content
A newer version of this page is available. .

IRuleBaseProperties.TargetType Property

Specifies the type of the object for which the Validation Rule will be checked.

Namespace: DevExpress.Persistent.Validation

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

Declaration

[Required]
[TypeConverter(typeof(RuleBasePropertiesTargetTypeConverter))]
Type TargetType { get; set; }

Property Value

Type Description
Type

A Type object which represents the type of the object for which the Validation Rule will be checked.

Remarks

This property has the RulePropertiesRequired attribute applied. So, the corresponding property of the Application Model cannot be empty.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the TargetType property.

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.

See Also