Condividi tramite


IProjectFileEnumeratorFactory.GetListAsync Method

Definition

Get all files in a specified project.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.FileEntity>> GetListAsync (Guid projectId, bool includeHiddenItems, bool includeExternalItems, Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.PathFilter filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetListAsync : Guid * bool * bool * Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.PathFilter * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<Microsoft.VisualStudio.Shell.Internal.FileEnumerationService.FileEntity>>
Public Function GetListAsync (projectId As Guid, includeHiddenItems As Boolean, includeExternalItems As Boolean, Optional filter As PathFilter = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyList(Of FileEntity))

Parameters

projectId
Guid

The unique ID of the project.

includeHiddenItems
Boolean

Defines whether the hidden items must be included.

includeExternalItems
Boolean

Defines whether the external items must be included.

filter
PathFilter

(optional) Additional filter to apply.

cancellationToken
CancellationToken

(optional) Cancellation token to cancel the task.

Returns

A task that represents the asynchronous operation.

Applies to