Size property

Returns the following values for items:

For this object

The Size property returns

File

The size of the file, in bytes.

Link

-1. This property is not meaningful for links.

Database Page

The number of rows in the Database.

Calendar Page

The number of event in the Calendar.

Folder Page, Poll Page, Version Page, Inbox Page, Discussion Page, and Topic Page

The number of items inside the container.

Note Page and Mail Page

The number of characters in the note or mail text, converted to kilobytes (or kilocharacters).

Syntax


C++

HRESULT get_Size(LONG* pSize)

Scripting languages

Long = Object.Size

Remarks


For Folder Pages, Poll Pages, Version Pages, Inbox Pages Discussion Pages, and Topic Pages:

  • The logged-in user must have Open access to the object in order to get its size, otherwise the Size property returns the error EROOM_E_ACCESSDENIED.

For List Pages, Note Pages, Mail Pages, and Files:

  • The logged-in user does not need Open access to the object to get its size.

Home

Applies to

IERUPrincipalItem


See also

Creating Items

Files