IProjectFileEnumeratorFactory.GetListAsync 方法

定义

获取指定项目中的所有文件。

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))

参数

projectId
Guid

项目的唯一 ID。

includeHiddenItems
Boolean

定义是否必须包含隐藏项。

includeExternalItems
Boolean

定义是否必须包含外部项。

filter
PathFilter

(可选) 要应用的其他筛选器。

cancellationToken
CancellationToken

取消任务 (可选) 取消标记。

返回

Task<IReadOnlyList<FileEntity>>

表示异步操作的任务。

适用于