StructuralConstraint Complex Type Complex Type

Defines the elements used to create the structure of a constraint. The StructuralConstraint complex type contains the base constraint elements from which all structural constraints derive.

<xs:complexType name="StructuralConstraint">
    <xs:sequence>
        <xs:element name="Description"
            type="Description"
            minOccurs="0"
         />
        <xs:element name="DesignData"
            type="DesignData"
            minOccurs="0"
         />
    </xs:sequence>
    <xs:attribute name="Name"
        type="SimpleName"
        use="required"
     />
    <xs:attribute name="Evaluate"
        type="ConstraintEvaluation"
        use="optional"
     />
    <xs:attribute name="RaiseError"
        type="boolean"
        use="optional"
     />
    <xs:attribute name="ReturnEarly"
        type="boolean"
        use="optional"
     />
</xs:complexType>

Child Elements

Element Type Description
Description Description

Description of the constraint.

DesignData DesignData

Design-specific information about this constraint.

Attributes

Name Type Description
Evaluate ConstraintEvaluation

Time to evaluate the constraint. The default value is Design.

Name SimpleName

Name of this constraint.

RaiseError boolean

true if a message should be returned to the user when this constraint fails; otherwise, false. The default is true.

ReturnEarly boolean

true if the constraint evaluation can be terminated when the constraint is known to fail or succeed; otherwise, false. The default is false.

Note  If you set the ReturnEarly attribute to true, you may speed up evaluation of the constraint; however, you may also fail to see some of the failure cases.

See Also

SystemDefinitionModel Schema Complex Types

Send comments about this topic to Microsoft

Build date: 9/5/2007