Skip to main content
.NET Framework 4.5.2+

RuleIsReferencedAttribute Properties

Defines a validation rule demanding that an object should be referenced in objects of a specified type.
Name Description
CriteriaEvaluationBehavior Specifies whether to look for objects that are currently retrieved from the database, in addition to the objects in the database itself.
CustomMessageTemplate Specifies informational text that is to be added to the exception message when the current Validation Rule is broken. Inherited from RuleBaseAttribute.
FoundObjectMessageFormat Gets or sets the format for specifying information on the found objects that reference the target object in the validation error message.
FoundObjectMessagesSeparator Specifies a separator for the object list written in the error message for the current rule.
IncludeCurrentObject
InvertResult Specifies whether the current rule should be inverted, to be checked. Inherited from RuleBaseAttribute.
LooksFor Specifies the type of objects to be looked for.
MessageTemplateFoundObjects
MessageTemplateMustBeReferenced Specifies the text to be written in the Validation Error window when the current rule is broken.
Name Specifies a name of the rule created using the current attribute. Inherited from RuleBaseAttribute.
ResultType Specifies the application behavior when the rule is broken. Inherited from RuleBaseAttribute.
SkipNullOrEmptyValues Specifies whether the current rule is checked for the properties that are set to null (Nothing in VB), an empty string (for string type propeties) or a minimal date (for DateTime type properties). Inherited from RuleBaseAttribute.
TargetContextIDs Specifies a context for checking the current Rule. Inherited from RuleBaseAttribute.
TargetCriteria Specifies a criterion that must be satisfied by the validated object or property to check rules. Inherited from RuleBaseAttribute.
TypeId When implemented in a derived class, gets a unique identifier for this Attribute. Inherited from Attribute.
See Also