VCProjectEngineObjectClass.IsSystemInclude 方法

如果指定文件在 <驱动器>:\Program Files\Microsoft Visual Studio 8\VC\include 目录中,则返回 true。

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

语法

声明
Public Overridable Function IsSystemInclude ( _
    Include As String _
) As Boolean
public virtual bool IsSystemInclude(
    string Include
)
public:
virtual bool IsSystemInclude(
    [InAttribute] String^ Include
)
abstract IsSystemInclude : 
        Include:string -> bool 
override IsSystemInclude : 
        Include:string -> bool 
public function IsSystemInclude(
    Include : String
) : boolean

参数

  • Include
    类型:System.String
    必选。要检查的文件的名称。您必须提供文件的完整路径。

返回值

类型:System.Boolean
如果文件为系统文件,则为 true;否则为 false。

实现

VCProjectEngine.IsSystemInclude(String)

备注

不要实例化 VCProjectEngineObjectClass。 实例化 VCProjectEngineObject ,如下所示:

Dim Engine As VCProjectEngine
Engine = New VCProjectEngineObject()

示例

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs As IVCCollection
        Dim cfg As VCConfiguration
        Dim ProjEng As VCProjectEngine
        prj = DTE.Solution.Projects.Item(1).Object
        cfgs = prj.Configurations
        ProjEng = cfgs.VCProjectEngine
        MsgBox(ProjEng.IsSystemInclude("C:\Program Files\Microsoft _
          Visual Studio .NET 2003\Vc7\PlatformSDK\Include\windows.h"))
    End Sub
End Module

.NET Framework 安全性

请参见

参考

VCProjectEngineObjectClass 类

Microsoft.VisualStudio.VCProjectEngine 命名空间