IFileEntitySource.GetNextChunkOfEntitiesAsync(CancellationToken) Method

Definition

Gets the next chunk of file system entry that the provider discovers, if possible.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheFileEntity>?> GetNextChunkOfEntitiesAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetNextChunkOfEntitiesAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.CacheFileEntity>>
Public Function GetNextChunkOfEntitiesAsync (cancellationToken As CancellationToken) As Task(Of IReadOnlyList(Of CacheFileEntity))

Parameters

cancellationToken
CancellationToken

Cancellation token to cancel the task.

Returns

Returns null when there no items have been retrieved

Remarks

When there are no more files to enumerate, IsDone should be set to True.

Applies to