IMSBuildProjectDataService.GetProjectItems(String, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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