IMSBuildProjectDataService.GetProjectItems(String, CancellationToken) Méthode

Définition

Obtient une collection d' MSBuildProjectItemData instances correspondant au type d’élément.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Extensions.MSBuild.MSBuildProjectItemData>> GetProjectItems (string itemType, System.Threading.CancellationToken cancellationToken = default);
abstract member GetProjectItems : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyCollection<Microsoft.VisualStudio.Workspace.Extensions.MSBuild.MSBuildProjectItemData>>
Public Function GetProjectItems (itemType As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyCollection(Of MSBuildProjectItemData))

Paramètres

itemType
String

Type de l’élément de projet

cancellationToken
CancellationToken

Jeton d’annulation facultatif

Retours

Task<IReadOnlyCollection<MSBuildProjectItemData>>

Collection d’instances correspondantes MSBuildProjectItemData

S’applique à