コード例 #1
0
 /// <summary>
 /// Gets a collection of all the documents in the database.
 /// </summary>
 /// <param name="ids">A set of unique document identifiers.</param>
 /// <param name="cancellationToken">A token to observe while waiting for the task to complete.</param>
 /// <returns>
 /// Returns the information for all documents for an application as a collection of <see cref="FileItem" /> objects.
 /// </returns>
 public virtual Task <IList <FileItem> > FindAllAsync(IEnumerable <int> ids, CancellationToken cancellationToken)
 {
     return(Context.FindItemsAsync(DriveQueries.QueryAllByIds(Context, ids), cancellationToken));
 }
コード例 #2
0
 /// <summary>
 /// Finds a collection of projects with the given values.
 /// </summary>
 /// <param name="userId">The user identifier for the item to be found.</param>
 /// <param name="parentId">The unique document identifier from the data source for the document.</param>
 /// <param name="name">The name for the item to be found.</param>
 /// <param name="pageIndex">The index of the page of results to return. Use 1 to indicate the first page.</param>
 /// <param name="pageSize">The size of the page of results to return. <paramref name="pageIndex" /> is non-zero-based.</param>
 /// <param name="cancellationToken">A token to observe while waiting for the task to complete.</param>
 /// <returns>
 /// A task that represents the asynchronous operation.
 /// </returns>
 public virtual Task <ListResult <FileResult> > FindAllAsync(int ownerId, int?parentId, string name, int pageIndex, int pageSize, CancellationToken cancellationToken)
 {
     return(Context.FindItemsAsync(DriveQueries.QueryAll(Context, ownerId, parentId, name), pageIndex, pageSize, cancellationToken));
 }