Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IDocumentFolderManager.GetSubFolders Method (Int32, Int32, Int32, ObjectProperty, QueryFilter[])

Queries the subfolders and their properties of a specified folder in the Knowledge Directory.

IObjectQuery GetSubFolders(
int folderID,
int startRow,
int maxRows,
ObjectProperty sortProperty,
QueryFilter[] filters
);

#### Parameters

folderID
  is the parent folder ID.
startRow
  the first row in the query to retrieve (row numbers are zero-based).
maxRows
  the number of rows in the query to retrieve; if set to -1, all the rows are retrieved.
sortProperty
  the property, specified using `DocumentFolderProperty`, on which to sort the query.
filters
  an array of query filters to narrow down the search.

#### Return Value

The subfolders and their properties.

#### Exceptions

Exception Type | Condition
--- | ---
PortalException | if the operation resulted in an error on the portal.
RemoteException | if there is a communication problem during the execution of the remote method call.

#### See Also

IDocumentFolderManager Interface | Plumtree.Remote.PRC Namespace | IDocumentFolderManager.GetSubFolders Overload List