ConstraintDefinition Complex Type Complex Type
ConstraintDefinition Complex Type
Defines the elements in a constraint on a defined set of input values. The constraint elements can identify a manager that provides code to evaluate input values or it can define a set of nested object or relationship constraints that evaluate the context in which the constraint definition is being used.
<xs:complexType name="ConstraintDefinition"> <xs:complexContent> <xs:extension base="Definition" > <xs:choice minOccurs="0" maxOccurs="unbounded" > <xs:element name="RelationshipConstraint" type="RelationshipConstraint" />
- RelationshipConstraint
A nested relationship constraint.
<xs:element name="RelationshipConstraintGroup" type="RelationshipConstraintGroup" />
- RelationshipConstraintGroup
A nested relationship constraint group.
<xs:element name="ConstraintGroup" type="ConstraintGroup" />
- ConstraintGroup
A nested constraint group identifying a manager that provides code to evaluate input values.
<xs:element name="ObjectConstraint" type="ObjectConstraint" />
- ObjectConstraint
A nested object constraint.
<xs:element name="ObjectConstraintGroup" type="ObjectConstraintGroup" />
- ObjectConstraintGroup
A nested object constraint group.
<xs:element name="Constraint" type="ConstraintMember" />
- Constraint
Identifies a manager that provides code to evaluate input values.
</xs:choice> <xs:attribute name="TargetDefinition" type="QualifiedName" use="optional" />
TargetDefinition
Defines the context in which a constraint definition expects to be evaluated. The target definition is required when the constraint definition includes object or relationship constraints.Where there is more than one possible context in which a constraint can be evaluated, use the target definition to identify the most appropriate context.
<xs:attribute name="ReturnEarly" type="boolean" use="optional" />
- ReturnEarly
true if no other constraints are evaluated that are part of the same overall constraint when the first constraint fails. false if the other constraints are evaluated when the first constraint fails.
</xs:extension> </xs:complexContent> </xs:complexType>
- ConstraintDefinition
Defines the elements in a constraint on a defined set of input values.
Child Elements
Element | Type | Description |
---|---|---|
Constraint | ConstraintMember | Identifies a manager that provides code to evaluate input values. |
ConstraintGroup | ConstraintGroup | A nested constraint group identifying a manager that provides code to evaluate input values. |
ObjectConstraint | ObjectConstraint | A nested object constraint. |
ObjectConstraintGroup | ObjectConstraintGroup | A nested object constraint group. |
RelationshipConstraint | RelationshipConstraint | A nested relationship constraint. |
RelationshipConstraintGroup | RelationshipConstraintGroup | A nested relationship constraint group. |
Attributes
Name | Type | Description |
---|---|---|
ReturnEarly | boolean | true if no other constraints are evaluated that are part of the same overall constraint when the first constraint fails. false if the other constraints are evaluated when the first constraint fails. |
TargetDefinition | QualifiedName | Defines the context in which a constraint definition expects to be evaluated. The target definition is required when the constraint definition includes object or relationship constraints. Where there is more than one possible context in which a constraint can be evaluated, use the target definition to identify the most appropriate context. |
See Also
SystemDefinitionModel Schema Complex Types
Send comments about this topic to Microsoft
Build date: 10/2/2007