The ID of the folder in which to query; if set to -1, the query is for all folders.
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 rows are retrieved.
sortProperty
The property on which to sort the query.
ascending
Whether the sort should be ascending or descending; use true for ascending.
propsToReturn
An array of object properties indicating which properties to return in the query.
filters
An array of query filters to narrow down the search.
Return Value
An IObjectQuery object that represents the results of the query.
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, including those that query all folders, or queries without query filters, can result in SOAP timeouts or OutOfMemoryErrors.