Condividi tramite


VCConfiguration.FileTools Property

Lists the available tools that operate on files.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Dichiarazione
ReadOnly Property FileTools As IVCCollection
    Get
IVCCollection FileTools { get; }
property IVCCollection^ FileTools {
    IVCCollection^ get ();
}
abstract FileTools : IVCCollection
function get FileTools () : IVCCollection

Property Value

Type: Microsoft.VisualStudio.VCProjectEngine.IVCCollection
A IVCCollection object.

Examples

See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.

The following example modifies the VCConfiguration object's FileTools property in the integrated development environment (IDE):

' 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

.NET Framework Security

See Also

Reference

VCConfiguration Interface

Microsoft.VisualStudio.VCProjectEngine Namespace