IMSBuildProjectDataService.GetProjectItems(String, CancellationToken) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
Collection d’instances correspondantes MSBuildProjectItemData