VCCodeTypedef - интерфейс
An object representing a typedef code element in the source code of a solution.
Пространство имен: Microsoft.VisualStudio.VCCodeModel
Сборка: Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)
Синтаксис
'Декларация
<GuidAttribute("17730D50-271F-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCCodeTypedef
'Применение
Dim instance As VCCodeTypedef
[GuidAttribute("17730D50-271F-11D7-8BF6-00B0D03DAA06")]
public interface VCCodeTypedef
[GuidAttribute(L"17730D50-271F-11D7-8BF6-00B0D03DAA06")]
public interface class VCCodeTypedef
public interface VCCodeTypedef
Заметки
The VCCodeTypedef object is used to modify an existing typedef construct.
See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.
Примеры
This example displays the name of each typedef code element in the current solution.
Sub GetAllTypedefs()
Dim vcCM As VCCodeModel
Dim vcTypedef As VCCodeTypedef
vcCM = DTE.Solution.Item(1).CodeModel
For Each vcTypedef in vcCM.Typedefs
MsgBox(vcTypedef.DisplayName)
Next
End Sub