Plumtree EDK (Enterprise Web Development Kit) 5.4.0 |

# IObjectManager.QueryObjects Method (Int32)

Queries for all objects of this class underneath a particular folder.

IObjectQuery QueryObjects(
int folderID
);

#### Parameters

folderID
  the ID of the folder in which to query; if set to -1, the query will be for all folders

#### Remarks

Returns an `IObjectQuery` object that has one row for each object returned. Use caution when creating a query. Queries that result in a large number of objects can result in SOAP timeouts, or OutOfMemoryErrors.

#### Exceptions

Exception Type | Condition
--- | ---
HttpException | if the query interface URL is not valid
PortalException | if the operation resulted in an error on the portal

#### See Also

IObjectManager Interface | Plumtree.Remote.PRC Namespace | IObjectManager.QueryObjects Overload List