预订演示

请注意 : 本帮助页面不适用于最新版本的Enterprise Architect. 最新的帮助文档在这里.

前页 后页

Constraint Class

A Constraint is a condition imposed on an element. Constraints are accessed through the Element Constraints collection.

Associated table in repository

t_objectconstraints

Constraint Attributes

Attribute

Remarks

See also

Name

String
Notes: Read/Write
The name of the constraint (that is, the constraint).

Notes

String
Notes: Read/Write
Notes about the constraint.

ObjectType

ObjectType
Notes: Read only
Distinguishes objects referenced through a Dispatch interface.
ObjectType

ParentID

Long
Notes: Read only
The ElementID of the element to which this constraint applies.

Status

String
Notes: Read/Write
The current status of the constraint.

Type

String
Notes: Read/Write
The constraint type.

Weight

Long
Notes: Read/Write
A weighting factor.

Constraint Methods

Method

Remarks

See also

GetLastError()

String
Notes: Returns a string value describing the most recent error that occurred in relation to this object.

Update()

Boolean
Notes: Update the current Constraint object after modification or appending a new item.
If False is returned, check the 'GetLastError()' function for more information.