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.v18.1.dll

Declaration

public string TargetPropertyName { get; set; }
Public Property TargetPropertyName As String

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.

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