MethodConstraint

Return to Introduction  Previous page  Next page

public 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 .EAP file: t_operationpres and t_operationposts

MethodConstraint Attributes

Attribute

Type

Notes

MethodID

Long

Read/Write. The local ID of the associated method.

Name

String

Read/Write. The name of the constraint.

Type

String

Read/Write. The constraint type.

Notes

String

Read/Write. Descriptive notes about this constraint. 

ObjectType

ObjectType

Read only.  Distinguishes objects referenced through a Dispatch interface.

MethodConstraint Methods

Method

Type

Notes

Update () 

Boolean 

Update the current MethodConstraint object after modification or appending a new item. If false is returned, check the GetLastError function for more information.

GetLastError () 

String

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

This function is rarely used since an exception is thrown when an error occurs.