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.StringThe 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.