Share via


VCProjectEngine.IsSystemInclude Method

Returns true if the specified file is in the Vc7\include directory or if the file is one of the directories specified with sysincl.dat.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

Syntax

'Declaration
Function IsSystemInclude ( _
    Include As String _
) As Boolean
bool IsSystemInclude(
    string Include
)
bool IsSystemInclude(
    [InAttribute] String^ Include
)
abstract IsSystemInclude : 
        Include:string -> bool 
function IsSystemInclude(
    Include : String
) : boolean

Parameters

  • Include
    Type: System.String
    Required. The name of the file you want to check. You must provide the full path to the file.

Return Value

Type: System.Boolean
true if the file is a system file; otherwise, false.

Examples

See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.

The following example modifies the IsSystemInclude property in the integrated development environment (IDE):

' 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 Security

See Also

Reference

VCProjectEngine Interface

Microsoft.VisualStudio.VCProjectEngine Namespace