Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

ToolKind Property

Visual Studio .NET 2003

Returns the name of the kind of tool this is.

[Visual Basic .NET]
Public ReadOnly Property ToolKind() As String
[Visual Basic 6]
Property Get ToolKind() As String
[C++]
HRESULT __stdcall get_ToolKind(
   /* [out, retval] */ BSTR* retVal
);
[C#]
public string ToolKind {get;}
[JScript .NET]
public function get ToolKind() : String

Return Value

A string representing the name of the kind of tool.

Example

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET 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

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCALinkTool Object | VCAuxiliaryManagedWrapperGeneratorTool Object | VCBscMakeTool Object | VCCLCompilerTool Object | VCCustomBuildTool Object | VCLibrarianTool Object | VCLinkerTool Object | VCManagedResourceCompilerTool Object | VCManagedWrapperGeneratorTool Object | VCMidlTool Object | VCNMakeTool Object | VCPostBuildEventTool Object | VCPreBuildEventTool Object | VCPreLinkEventTool Object | VCPrimaryInteropTool Object | VCResourceCompilerTool Object | VCWebDeploymentTool Object | VCWebServiceProxyGeneratorTool Object | VCXMLDataGeneratorTool Object

Show:
© 2015 Microsoft