Freigeben über


IMSBuildProjectDataService.GetProjectItems(String, CancellationToken) Method

Definition

Gets a collection of MSBuildProjectItemData instances matching the item type.

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

Parameters

itemType
String

Type of the project item

cancellationToken
CancellationToken

Optional cancellation token

Returns

Collection of matching MSBuildProjectItemData instances

Applies to