ConstraintDefinition Complex Type 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"
/>
<xs:element name="RelationshipConstraintGroup"
type="RelationshipConstraintGroup"
/>
<xs:element name="ConstraintGroup"
type="ConstraintGroup"
/>
<xs:element name="ObjectConstraint"
type="ObjectConstraint"
/>
<xs:element name="ObjectConstraintGroup"
type="ObjectConstraintGroup"
/>
<xs:element name="Constraint"
type="ConstraintMember"
/>
</xs:choice>
<xs:attribute name="TargetDefinition"
type="QualifiedName"
use="optional"
/>
<xs:attribute name="ReturnEarly"
type="boolean"
use="optional"
/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
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: 9/5/2007