前页 | 后页 |
MethodConstraint Class
A MethodConstraint is a condition imposed on a method. It is accessed through either the Method PreConditions or Method PostConditions collection.Associated table in repository
t_operationpres and t_operationpostsMethodConstraint Attributes
Attribute |
Remarks |
See also |
---|---|---|
MethodID |
Long Notes: Read/Write The local ID of the associated method. |
|
Name |
String Notes: Read/Write The name of the constraint. |
|
Notes |
String Notes: Read/Write Descriptive notes about this constraint. |
|
ObjectType |
ObjectType Notes: Read only Distinguishes objects referenced through a Dispatch interface. |
ObjectType |
Type |
String Notes: Read/Write The constraint type. |
MethodConstraint Methods
Method |
Remarks |
See also |
---|---|---|
GetLastError() |
String Notes: Returns a string value describing the most recent error that occurred in relation to this object. This function is rarely used as an exception is thrown when an error occurs. |
|
Update() |
Boolean Notes: Update the current MethodConstraint object after modification or appending a new item. If False is returned, check the 'GetLastError()' function for more information. |