VCFilter.ParseFiles Property

Gets or sets a value indicating whether the files in a filter are open to inspection by IntelliSense.

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

Syntax

声明
Property ParseFiles As Boolean
用法
Dim instance As VCFilter
Dim value As Boolean

value = instance.ParseFiles

instance.ParseFiles = value
bool ParseFiles { get; set; }
property bool ParseFiles {
    bool get ();
    void set (bool value);
}
function get ParseFiles () : boolean
function set ParseFiles (value : boolean)

Property Value

Type: System.Boolean

true if files are available to IntelliSense; otherwise, false.

Remarks

By default, the files in any filter are open to inspection by IntelliSense.

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

Examples

The following example uses ParseFiles in the integrated development environment (IDE):

' Macro code.
' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim idx As Integer
        Dim filter As VCFilter
        Dim col As IVCCollection
        Dim prj, prj2 As VCProject
        prj = DTE.Solution.Projects.Item(1).Object
        col = prj.Filters
        For idx = 1 To col.Count
            filter = col.Item(idx)
            ' filter.ParseFiles returns the value of the property
            filter.ParseFiles = False
        Next
    End Sub
End Module

Permissions

See Also

Reference

VCFilter Interface

VCFilter Members

Microsoft.VisualStudio.VCProjectEngine Namespace