AquaLogic Interaction Development Kit (IDK) 6.0.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. Note: Use caution when creating a query. Queries that result in a large number of objects can result in SOAP timeouts or `OutOfMemoryError`s.

#### Exceptions

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

#### See Also

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