Partager via


VCALinkTool.ToolPath, propriété

Obtient le chemin d'accès à l'outil spécifié.

Espace de noms :  Microsoft.VisualStudio.VCProjectEngine
Assembly :  Microsoft.VisualStudio.VCProjectEngine (dans Microsoft.VisualStudio.VCProjectEngine.dll)

Syntaxe

'Déclaration
ReadOnly Property ToolPath As String
string ToolPath { get; }
property String^ ToolPath {
    String^ get ();
}
abstract ToolPath : string with get
function get ToolPath () : String

Valeur de propriété

Type : System.String
Chemin d'accès à l'outil spécifié.

Notes

Pour plus d'informations sur la compilation et l'exécution de cet exemple, consultez Comment : compiler l'exemple de code pour l'extensibilité du modèle de projet.

Exemples

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
   Sub Test()
      Dim prj As VCProject
      Dim cfgs, tools As IVCCollection
      Dim cfg As VCConfiguration
      Dim tool As VCALinkTool
      Dim msg As String
      prj = DTE.Solution.Projects.Item(1).Object
      cfgs = prj.Configurations
      cfg = cfgs.Item(1)
      tool = cfg.Tools("VCAlinkTool")
      msg += "Tool kind: " & tool.ToolKind & vbCr
      msg += "Tool name: " & tool.ToolName & vbCr
      msg += "Tool path: " & tool.ToolPath
      MsgBox(msg)
   End Sub
End Module

Sécurité .NET Framework

Voir aussi

Référence

VCALinkTool Interface

Microsoft.VisualStudio.VCProjectEngine, espace de noms