VCProjectEngineObjectClass.IsSystemInclude - метод
Returns true if the specified file is in the <drive>:\Program Files\Microsoft Visual Studio 8\VC\include directory.
Пространство имен: Microsoft.VisualStudio.VCProjectEngine
Сборка: Microsoft.VisualStudio.VCProjectEngine (в Microsoft.VisualStudio.VCProjectEngine.dll)
Синтаксис
'Декларация
Public Overridable Function IsSystemInclude ( _
Include As String _
) As Boolean
'Применение
Dim instance As VCProjectEngineObjectClass
Dim Include As String
Dim returnValue As Boolean
returnValue = instance.IsSystemInclude(Include)
public virtual bool IsSystemInclude(
string Include
)
public:
virtual bool IsSystemInclude(
[InAttribute] String^ Include
)
public 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.
Реализации
VCProjectEngine.IsSystemInclude(String)
Заметки
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
Разрешения
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.
См. также
Ссылки
VCProjectEngineObjectClass Класс