Aracılığıyla paylaş


ProjectInstance.GetItems(String) Method

Definition

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.

Applies to