VCProjectEngineObjectClass.IsSystemInclude Method

Returns true if the specified file is in the <drive>:\Program Files\Microsoft Visual Studio 8\VC\include directory.

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

Syntax

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

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.

Implements

VCProjectEngine.IsSystemInclude(String)

Remarks

Do not instantiate VCProjectEngineObjectClass. Instantiate VCProjectEngineObject instead, as shown below:

Dim Engine As VCProjectEngine
Engine = New VCProjectEngineObject()

Examples

' 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

VCProjectEngineObjectClass Class

Microsoft.VisualStudio.VCProjectEngine Namespace