VCFilter.ParseFiles 属性

获取或设置一个在筛选器的文件是否的值处于打开状态到测试由 IntelliSense。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
Property ParseFiles As Boolean
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)

属性值

类型:System.Boolean
true 文件,则向 IntelliSense 可用;否则, false。

备注

默认情况下,在所有筛选器的文件处于打开状态到测试由 IntelliSense。

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

下面的示例在集成开发环境 (ide) 使用 ParseFiles (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 安全性

请参见

参考

VCFilter 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间