Поделиться через


VCCodeInclude - интерфейс

An object representing a #include code element in the source code of a solution.

Пространство имен:  Microsoft.VisualStudio.VCCodeModel
Сборка:  Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)

Синтаксис

'Декларация
<GuidAttribute("17730D53-271F-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCCodeInclude
'Применение
Dim instance As VCCodeInclude
[GuidAttribute("17730D53-271F-11D7-8BF6-00B0D03DAA06")]
public interface VCCodeInclude
[GuidAttribute(L"17730D53-271F-11D7-8BF6-00B0D03DAA06")]
public interface class VCCodeInclude
public interface VCCodeInclude

Заметки

The VCCodeInclude object represents a #include code statement in a source file, allowing access to information about the specific code element.

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Примеры

This example retrieves all #include code elements of the current solution and displays their content in a message box.

Sub GetAllIncludes()
    Dim vcCM As VCCodeModel
    Dim vcInclude As VCCodeInclude
    vcCM = DTE.Solution.Item(1).CodeModel
    For Each vcInclude in vcCM.Includes
        MsgBox(vcInclude.DisplayName)
    Next
End Sub

См. также

Ссылки

VCCodeInclude - члены

Microsoft.VisualStudio.VCCodeModel - пространство имен