VCALinkTool.ToolKind 属性

获取工具的类型名称。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
ReadOnly Property ToolKind As String
string ToolKind { get; }
property String^ ToolKind {
    String^ get ();
}
abstract ToolKind : string with get
function get ToolKind () : String

属性值

类型:System.String
类型名称的工具。

备注

有关如何编译和运行此示例的信息,请参见如何:编译项目模型扩展性示例代码

示例

[Visual Basic]

' 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

.NET Framework 安全性

请参见

参考

VCALinkTool 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间