Partager via


VCProjectEngineObjectClass.IsSystemInclude(String) Method

Definition

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

public:
 virtual bool IsSystemInclude(System::String ^ Include) = Microsoft::VisualStudio::VCProjectEngine::VCProjectEngine::IsSystemInclude;
public:
 virtual bool IsSystemInclude(Platform::String ^ Include) = Microsoft::VisualStudio::VCProjectEngine::VCProjectEngine::IsSystemInclude;
 virtual bool IsSystemInclude(std::wstring const & Include);
[System.Runtime.InteropServices.DispId(222)]
public virtual bool IsSystemInclude (string Include);
[<System.Runtime.InteropServices.DispId(222)>]
abstract member IsSystemInclude : string -> bool
override this.IsSystemInclude : string -> bool
Public Overridable Function IsSystemInclude (Include As String) As Boolean

Parameters

Include
String

Required. The name of the file you want to check. You must provide the full path to the file.

Returns

true if the file is a system file; otherwise, false.

Implements

Attributes

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  

Remarks

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

Dim Engine As VCProjectEngine  
Engine = New VCProjectEngineObject()  

Applies to