VCProjectEngineObjectClass::IsSystemInclude Method (String^)

 

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)

public:
virtual bool IsSystemInclude(
	String^ Include
)

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.

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

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
Return to top
Show: