HasSubs Property

The HasSubs property contains the flag that indicates whether any subfolders exist within a folder.

Property HasSubs As Boolean[C++]
Get method:
HRESULT get_HasSubs(VARIANT_BOOL*varHasSubs);

[Visual Basic]

Parameters

None.

Return Values

This property returns a Boolean that contains the flag that indicates whether one or more subfolders exist.

Error Values

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

[C++]

Parameters
  • varHasSubs
    [out, retval] Pointer to a VARIANT_BOOL that contains the flag that indicates whether one or more subfolders exist.
Return Values

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

Remarks

This is a read-only property. The HasSubs property counts only subcollections. Use the HasChildren property to count everything.