Share via


ConstraintEvaluation simple type [SDM]

 
Platform SDK: System Definition Model Overview

ConstraintEvaluation Simple Type

Note: This documentation is preliminary and is subject to change.

Defines values that allow the constraint developer to mark a constraint according to when it should run.

The time at which a constraint is evaluated changes the set of information that is available to the constraint. A constraint can be evaluated during the design process. Constraints that are evaluated at design time cannot depend on values that will only be supplied during deployment or that will only be available after deployment.

<xs:simpleType name="ConstraintEvaluation">
    <xs:restriction
        base="string"
    >
        <xs:enumeration
            value="Design"
         />
        <xs:enumeration
            value="Never"
         />
    </xs:restriction>
</xs:simpleType>
ConstraintEvaluation
Defines values that allow the constraint developer to mark a constraint according to when it should run.

Enumeration

The following values are defined by the ConstraintEvaluation simple type:

Value Description
Design The constraint can be run at design time, deployment time, or during validation. This is the default value.
Never The constraint will never be executed.

Remarks

The evaluation behavior of a constraint can be set on both structural constraints and on constraint members. In both cases, it applies to all nested constraints.

Constraints are marked as design time constraints by default and can be executed at any time.

See Also

SystemDefinitionModel Schema Simple Types

  
  Last updated: June 2005  |  What did you think of this topic?  |  Order a Platform SDK CD
  © Microsoft Corporation. All rights reserved. Terms of use.