IGraphClientAsync.ListFoldersAsync

ListFoldersAsync(ODataQueryBuilder, CancellationToken)

Asynchronously lists folders from the root folder.

public Task<FolderInfoCollection> ListFoldersAsync(ODataQueryBuilder queryBuilder = null, 
    CancellationToken cancellationToken = default)
ParameterTypeDescription
queryBuilderODataQueryBuilderOptional OData query builder for filtering folders.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous operation. The task result contains the list of subfolders of the root folder.

See Also


ListFoldersAsync(string, ODataQueryBuilder, CancellationToken)

Asynchronously lists folders from the parent folder.

public Task<FolderInfoCollection> ListFoldersAsync(string id, 
    ODataQueryBuilder queryBuilder = null, CancellationToken cancellationToken = default)
ParameterTypeDescription
idStringParent folder id.
queryBuilderODataQueryBuilderOptional OData query builder for filtering folders.
cancellationTokenCancellationTokenA cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous operation. The task result contains the list of subfolders of the folder.

See Also