获取或设置指示筛选器中的文件是否对 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)
属性值
类型:Boolean
如果文件可供 IntelliSense,则为 true;否则,为 false。
备注
默认情况下,中所有筛选器文件的是开放。检查由 IntelliSense。
有关如何编译和运行该示例的信息,请参见 如何:编译项目模型扩展性示例代码。
示例
以下示例在集成开发环境 (IDE) (IDE) 使用 ParseFiles :
' 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 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。