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


VCCodeStruct - интерфейс

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

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

Синтаксис

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

Заметки

The VCCodeStruct object is used to modify an existing function construct.

ПримечаниеПримечание.

A large part of the functionality of this object is provided by the Visual Studio CodeStruct object. For more information, see CodeStruct object.

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 structure code elements of the current solution and displays each name in a message box.

Sub GetAllStructs()
    Dim vcCM As VCCodeModel
    Dim vcStruct As VCCodeStruct
    vcCM = DTE.Solution.Item(1).CodeModel
    For Each vcStruct in vcCM.Structs
        MsgBox(vcStruct.DisplayName)
    Next
End Sub

См. также

Ссылки

VCCodeStruct - члены

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