Project.GetItems(String) 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.
All the items in the project of the specified type. If there are none, returns an empty list. Use AddItem or RemoveItem to modify items in this project.
public:
System::Collections::Generic::ICollection<Microsoft::Build::Evaluation::ProjectItem ^> ^ GetItems(System::String ^ itemType);
public System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectItem> GetItems (string itemType);
member this.GetItems : string -> System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectItem>
Public Function GetItems (itemType As String) As ICollection(Of ProjectItem)
Parameters
- itemType
- String
The item type to be retrieved.
Returns
All the items in the project of the given item type, or an empty list if there are no items with the given item name.
Remarks
Use AddItem or RemoveItem to modify items in this project.