Risk Class

A Risk object represents a named risk associated with an element, it is used for project management purposes. Risks can be accessed through the Element Risks collection.

Associated table in .EAP file:     t_objectrisks

Risk Attributes:

Attribute

Type

Notes

Name

String

Read/Write

The name of the risk.

 

Notes

String

Read/Write

Further notes describing the risk.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

Type

String

Read/Write

The risk type associated with this element.

 

Weight

Long

Read/Write

A weighting for estimation or metric purposes.

 

Risk 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 Risk object after modification or appending a new item.

If false is returned, check the GetLastError function for more information.