VCProjectEngine.IsSystemInclude - метод
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.
Пространство имен: Microsoft.VisualStudio.VCProjectEngine
Сборка: Microsoft.VisualStudio.VCProjectEngine (в Microsoft.VisualStudio.VCProjectEngine.dll)
Синтаксис
'Декларация
Function IsSystemInclude ( _
Include As String _
) As Boolean
'Применение
Dim instance As VCProjectEngine
Dim Include As String
Dim returnValue As Boolean
returnValue = instance.IsSystemInclude(Include)
bool IsSystemInclude(
string Include
)
bool IsSystemInclude(
[InAttribute] String^ Include
)
function IsSystemInclude(
Include : String
) : boolean
Параметры
Include
Тип: System.StringRequired. The name of the file you want to check. You must provide the full path to the file.
Возвращаемое значение
Тип: System.Boolean
true if the file is a system file; otherwise, false.
Примеры
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
Разрешения
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.