Project.GetItemsByEvaluatedInclude(String) Method

Definition

Returns all items that have the specified evaluated include. For example, all items that have the evaluated include "bar.cpp". Typically there will be zero or one, but sometimes there are two items with the same path and different item types, or even the same item types. This will return them all.

public:
 System::Collections::Generic::ICollection<Microsoft::Build::Evaluation::ProjectItem ^> ^ GetItemsByEvaluatedInclude(System::String ^ evaluatedInclude);
public System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectItem> GetItemsByEvaluatedInclude (string evaluatedInclude);
member this.GetItemsByEvaluatedInclude : string -> System.Collections.Generic.ICollection<Microsoft.Build.Evaluation.ProjectItem>
Public Function GetItemsByEvaluatedInclude (evaluatedInclude As String) As ICollection(Of ProjectItem)

Parameters

evaluatedInclude
String

The evaluated Include attribute.

Returns

All items that have the given evaluated Include attribute.

Remarks

For example, this method might return all items that have the evaluated Include attribute "component.cpp". Typically zero or one items are returned. However, there may be multiple items with the same path and different item types, or even with the same item types.

Applies to