VCProjectEngine.IsSystemInclude(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
bool IsSystemInclude(System::String ^ Include);
public:
bool IsSystemInclude(Platform::String ^ Include);
bool IsSystemInclude(std::wstring const & Include);
[System.Runtime.InteropServices.DispId(222)]
public bool IsSystemInclude (string Include);
[<System.Runtime.InteropServices.DispId(222)>]
abstract member IsSystemInclude : string -> bool
Public 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
.
- Attributes
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