ProjectInstance.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.
Get a list of all the items in the project of the specified type, or an empty list if there are none. This is a read-only list.
public:
System::Collections::Generic::ICollection<Microsoft::Build::Execution::ProjectItemInstance ^> ^ GetItems(System::String ^ itemType);
public System.Collections.Generic.ICollection<Microsoft.Build.Execution.ProjectItemInstance> GetItems (string itemType);
member this.GetItems : string -> System.Collections.Generic.ICollection<Microsoft.Build.Execution.ProjectItemInstance>
Public Function GetItems (itemType As String) As ICollection(Of ProjectItemInstance)
Parameters
- itemType
- String
The item type of the items to be retrieved.
Returns
All the items in this project of the specified type. Returns an empty list if there are none.