Compartilhar via


Project.GetItemsByEvaluatedInclude Method

Gets all items that have the given evaluated Include attribute.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:  Microsoft.Build.Evaluation
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

Syntax

'Declaration
Public Function GetItemsByEvaluatedInclude ( _
    evaluatedInclude As String _
) As ICollection(Of ProjectItem)
public ICollection<ProjectItem> GetItemsByEvaluatedInclude(
    string evaluatedInclude
)
public:
ICollection<ProjectItem^>^ GetItemsByEvaluatedInclude(
    String^ evaluatedInclude
)
member GetItemsByEvaluatedInclude : 
        evaluatedInclude:string -> ICollection<ProjectItem> 
public function GetItemsByEvaluatedInclude(
    evaluatedInclude : String
) : ICollection<ProjectItem>

Parameters

  • evaluatedInclude
    Type: System.String

    The evaluated Include attribute.

Return Value

Type: ICollection<ProjectItem>
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.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.Evaluation Namespace