Condividi tramite


VCConfiguration.FileTools Property

Definition

Lists the available tools that operate on files.

public:
 property Microsoft::VisualStudio::VCProjectEngine::IVCCollection ^ FileTools { Microsoft::VisualStudio::VCProjectEngine::IVCCollection ^ get(); };
[System.Runtime.InteropServices.DispId(708)]
public Microsoft.VisualStudio.VCProjectEngine.IVCCollection FileTools { [System.Runtime.InteropServices.DispId(708)] [System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)] get; }
[<System.Runtime.InteropServices.DispId(708)>]
[<get: System.Runtime.InteropServices.DispId(708)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(System.Runtime.InteropServices.TypeLibFuncFlags.FNonBrowsable)>]
member this.FileTools : Microsoft.VisualStudio.VCProjectEngine.IVCCollection
Public ReadOnly Property FileTools As IVCCollection

Property Value

A IVCCollection object.

Attributes

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  

Applies to