Skip to main content
.NET 8.0+

RuleUniqueValueAttribute.TargetPropertyName Property

Specifies the target collection’s element property that must be checked by the current rule.

Namespace: DevExpress.Persistent.Validation

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

Declaration

public string TargetPropertyName { get; set; }

Property Value

Type Description
String

A string holding the name of the target collection’s element property that must be checked by the current rule.

Remarks

Built-in validation rules can be applied to a collection property involved in a relationship (marked with the Association attribute). In this instance, a validation rule ensures that each collection element is valid. An element’s property that must be checked is specified via the TargetPropertyName named parameter.

See Also