Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

File Class

public Class

A File represents an associated file for an element. It is accessed through the Element Files collection.

Associated table in .EAP file: t_objectfiles

File Attributes

Attribute

Type

Notes

FileDate

String

Read/Write. The file date when entry is created.

Name

String

Read/Write. The file name can be a logical file or a reference to a web address (using http://).

Notes

String

Read/Write. Notes about the file.

ObjectType

ObjectType

Read only. Distinguishes objects referenced through a Dispatch interface.

Size

String

Read/Write. The file size.

Type

String

Read/Write. File type.

File 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 File object after modification or appending a new item. If false is returned, check the GetLastError function for more information.