Sdílet prostřednictvím


Project.Targets Property

Definition

Targets in the project. The key to the dictionary is the target's name. Overridden targets are not included in this collection. This collection is read-only.

public:
 property System::Collections::Generic::IDictionary<System::String ^, Microsoft::Build::Execution::ProjectTargetInstance ^> ^ Targets { System::Collections::Generic::IDictionary<System::String ^, Microsoft::Build::Execution::ProjectTargetInstance ^> ^ get(); };
public System.Collections.Generic.IDictionary<string,Microsoft.Build.Execution.ProjectTargetInstance> Targets { get; }
member this.Targets : System.Collections.Generic.IDictionary<string, Microsoft.Build.Execution.ProjectTargetInstance>
Public ReadOnly Property Targets As IDictionary(Of String, ProjectTargetInstance)

Property Value

A read-only dictionary of all targets in this project, keyed by target name. Overridden targets are not included in this collection.

Applies to