This documentation is archived and is not being maintained.

Tools Property

Visual Studio .NET 2003

Lists the available tools for the platform.

[Visual Basic .NET]
Public ReadOnly Property Tools() As Object
[Visual Basic 6]
Property Get Tools() As Object
[C++]
HRESULT __stdcall get_Tools(
   /* [out, retval] */ IDispatch** retVal
);
[C#]
public object Tools {get;}
[JScript .NET]
public function get Tools() : Object

Example

The following sample code uses the Tools property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
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 plat As VCPlatform
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        plat = cfg.Platform
        tools = plat.Tools
        MsgBox(tools.Item(1).ToolName)
    End Sub
End Module

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

See Also

Applies To: VCConfiguration Object | VCPlatform Object | VCStyleSheet Object

Show: