CodeTypeRef2 Interface
Visual Studio 2012
Defines the type of a construct in a source file.
Namespace: EnvDTE80
Assembly: EnvDTE80 (in EnvDTE80.dll)
The CodeTypeRef2 type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AsFullName | Gets the fully qualified name of the CodeTypeRef object. |
![]() | AsString | Gets a string to use for displaying the CodeTypeRef object. |
![]() | CodeType | Gets or sets information describing what kind of CodeTypeRef object this item is. |
![]() | DTE | Gets the top-level extensibility object. |
![]() | ElementType | Gets or sets an object representing the programmatic type. |
![]() | IsGeneric | Gets a value indicating whether the current class or struct is a generic. |
![]() | Parent | Gets the immediate parent object of a CodeTypeRef object. |
![]() | Rank | If this item is an array, gets or sets the number of dimensions in this array. |
![]() | TypeKind | Gets the base type of the CodeTypeRef. |
| Name | Description | |
|---|---|---|
![]() | CreateArrayType | Creates an array of specified type, and inserts it into the code in the correct location. |
The CodeTypeRef2 object is used to represent the type of a function, variable, or parameter.
Note |
|---|
The values of code model elements such as classes, structs, functions, attributes, delegates, and so forth can be non-deterministic after making certain kinds of edits, meaning that their values cannot be relied upon to always remain the same. For more information, see the section Code Model Element Values Can Change in Discovering Code by Using the Code Model (Visual Basic). |
