VCCodeTypedef Interface
An object representing a typedef code element in the source code of a solution.
Namespace: Microsoft.VisualStudio.VCCodeModel
Assembly: Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)
Syntax
声明
<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
Remarks
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.
Examples
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