Condividi tramite


TargetCollection.Item Property

Gets the specified Target object in the TargetCollection.

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.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As String _
) As Target
public Target this[
    string index
] { get; }
public:
property Target^ default[String^ index] {
    Target^ get (String^ index);
}
member Item : 
        index:string -> Target with get
JScript does not support indexed properties.

Parameters

  • index
    Type: System.String

    The Name attribute of the Target element in the collection.

Property Value

Type: Microsoft.Build.BuildEngine.Target
The Target object that contains the Name property value specified by index.

Remarks

A Target object represents a Target element in the project.

.NET Framework Security

See Also

Reference

TargetCollection Class

Microsoft.Build.BuildEngine Namespace