This documentation is archived and is not being maintained.

VCCodeTypedef Object

Visual Studio .NET 2003

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

[Visual Basic .NET]
Public Interface VCCodeTypedef
   Inherits IDispatch
[Visual Basic 6]
Class VCCodeTypedef
[C++]
interface VCCodeTypedef : IDispatch
[C#]
public interface VCCodeTypedef : IDispatch
[JScript .NET]
public interface VCCodeTypedef extends IDispatch

Remarks

The VCCodeTypedef object is used to modify an existing typedef construct.

Requirements

Namespace: Microsoft.VisualStudio.VCCodeModel

File: vcpkg.dll

Example

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

See Samples for Code Model Extensibility for information on how to compile and run this sample.

See Also

VCCodeTypedef Object Properties, Methods, and Events | Visual C++ Extensibility Object Model

Show: