Skip to main content
.NET 8.0+

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

IRuleCollectionPropertyProperties.MessageTemplateTargetDoesNotSatisfyCollectionCriteria Property

Specifies the message displayed when the Validation Rule was not checked because a validated object is not an element of the target collection.

Namespace: DevExpress.Persistent.Validation

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

#Declaration

[DefaultValue("The \"{Id}\" rule was not checked because the target is not an element of the \"{TargetCollectionOwnerType}.{TargetCollectionPropertyName}\" collection.")]
string MessageTemplateTargetDoesNotSatisfyCollectionCriteria { get; set; }

#Property Value

Type Default Description
String "The "{Id}" rule was not checked because the target is not an element of the "{TargetCollectionOwnerType}.{TargetCollectionPropertyName}" collection."

A string specifying the message displayed when the Rule was not checked because a validated object is not an element of the target collection.

#Remarks

When using the ShowAllContexts Action, the invoked window shows the broken rules grouped by contexts. Double-click a context to invoke a Detail View for it. In the Detail View, you will be able to see the list of all rules checked in the current context. The text that is set for this property will be written for those rules that are not checked because the validated object is not an element of the target collection. For additional information, refer to the Collection Validation topic.

See Also