ObjectCount Property

The ObjectCount property specifies the number of items, excluding subfolders, in a folder.

Property ObjectCount As Long[C++]
Get method:
HRESULT get_ObjectCount(LONG*varObjectCount);

[Visual Basic]

Parameters

None.

Return Values

This property returns a Long that contains the number of non-folder items in the collection.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters

Get method:

  • varObjectCount
    [out, retval] Address of a pointer to a LONG that contains the number of non-folder items in the collection.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Remarks

This is a read-only property. The ObjectCount property counts hidden and visible non-folder items. To determine how many non-folder items are visible, use the VisibleCount property.