次の方法で共有


VCFilter.ParseFiles Property

Definition

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

public:
 property bool ParseFiles { bool get(); void set(bool value); };
public:
 property bool ParseFiles { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(2356)]
public bool ParseFiles { [System.Runtime.InteropServices.DispId(2356)] get; [System.Runtime.InteropServices.DispId(2356)] set; }
[<System.Runtime.InteropServices.DispId(2356)>]
[<get: System.Runtime.InteropServices.DispId(2356)>]
[<set: System.Runtime.InteropServices.DispId(2356)>]
member this.ParseFiles : bool with get, set
Public Property ParseFiles As Boolean

Property Value

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

Attributes

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  

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.

Applies to