共用方式為


Rule Element

Represents a single validation rule in a diagram validation rule set.

Syntax

<Rule
    ID
    NameU
    [Category]
    [Description]
    [RuleTarget]
    [Ignored]>
</Rule>

Attributes

ID

Required unsigned Long. Specifies the unique identifier for the validation rule.

NameU

Required string. Specifies the universal name of the validation rule.

[Category]

Optional string. Specifies the text displayed in the Category column of the Issues window. Default is an empty string.

[Description]

Optional string. Specifies the description of the validation rule that appears in the user interface. Default is "Unknown".

[RuleTarget]

Optional VisRuleTargets. Specifies the type of object to which the validation rule applies.

[Ignored]

Optional Boolean. Specifies whether the validation rule is currently ignored. Default is False.

Element properties

Property

Value

Name

Rule

Minimum Occurrences

0

Maximum Occurrences

Unbounded

Element information

Parent elements

RuleSet

Child elements

RuleFilter

RuleTest

See also

ValidationRule Object