Export (0) Print
Expand All
Expand Minimize

FileTools Property

Visual Studio .NET 2003

Lists the available tools that operate on files.

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

Example

The following sample code modifies the VCConfiguration object's FileTools property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim idx As Integer
        Dim cfgs, cfgs2 As IVCCollection
        Dim cfg As VCConfiguration

        Dim prj As VCProject
        prj = DTE.Solution.Projects.Item(1).Object

        cfgs = prj.Configurations
        cfg = cfgs.Item(1)
        cfgs2 = cfg.FileTools
        For idx = 1 To cfgs2.Count
            MsgBox(cfgs2.Item(idx).ToolName)
        Next

    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 | VCStyleSheet Object

Show:
© 2014 Microsoft