MethodConstraint

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.

Notes

String

Read/Write. Descriptive notes about this constraint.

ObjectType

ObjectType

Read only. Distinguishes objects referenced through a Dispatch interface.

Type

String

Read/Write. The constraint type.

MethodConstraint Methods

Method

Type

Notes

GetLastError ()

String

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

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