IFileEntitySource.GetNextChunkOfEntitiesAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.