Freigeben über


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

'Declaration
Property ParseFiles As Boolean
    Get
    Set
bool ParseFiles { get; set; }
property bool ParseFiles {
    bool get ();
    void set (bool value);
}
abstract ParseFiles : bool with get, set
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

.NET Framework Security

See Also

Reference

VCFilter Interface

Microsoft.VisualStudio.VCProjectEngine Namespace