Queries for documents contained in the specified project, and returns an array of IDocuments that satisfies the query filter.
null. IDocumentFilter instance specifying which query to perform, the desired sort order of the query result, and the maximum number of results to return; cannot be null. An array of IDocuments satisfying the filter, in the specified project.
//Create the new query filter IDocumentFilter filter = documentManager.CreateDocumentFilter(); //Set it to only search for checked-out documents filter.FilterType = DocumentFilterTypes.CheckedOutByCurrentUser; //Set to order by size, then last modified date DocumentQueryOrder sizeOrder = new DocumentQueryOrder(DocumentAttributes.NumBytes, true); DocumentQueryOrder lastModifiedOrder = new DocumentQueryOrder(DocumentAttributes.LastModified, true); DocumentQueryOrder[] orders = new DocumentQueryOrder[]}sizeOrder, lastModifiedOrder}; filter.QueryOrders = orders; //Perform query IDocument[] foundDocuments = documentManager.QueryDocuments(project, filter);
| Exception Type | Condition |
|---|---|
| CollaborationException | The method call resulted in an error. |
| SoapException | There was a communication problem during the execution of the remote method call. |
| InvalidOperationException | The project has not yet been stored or has already been removed. |
IDocumentManager Interface | Plumtree.Remote.PRC.Collaboration.Document Namespace | IDocumentManager.QueryDocuments Overload List