Share via


CodeTypeRef2.TypeKind Property

Gets the base type of the CodeTypeRef.

Namespace:  EnvDTE80
Assembly:  EnvDTE80 (in EnvDTE80.dll)

Syntax

'Declaration
ReadOnly Property TypeKind As vsCMTypeRef
vsCMTypeRef TypeKind { get; }
property vsCMTypeRef TypeKind {
    vsCMTypeRef get ();
}
abstract TypeKind : vsCMTypeRef with get
function get TypeKind () : vsCMTypeRef

Property Value

Type: EnvDTE.vsCMTypeRef
A vsCMTypeRef value.

Remarks

TypeKind returns the kind of the type, for example, whether it is a .NET Framework system built-in type, a type reference (such as a class, interface, and so forth), or an array type.

When the type is an array or pointer, ElementType is the CodeTypeRef object for the array elements or the target for the pointer. For language-specific modeling, the type is vsCMTypeRefOther, and you must check the language of Parent to discover a more specific interface for which you can query interface (QI).

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).

.NET Framework Security

See Also

Reference

CodeTypeRef2 Interface

EnvDTE80 Namespace

Other Resources

How to: Compile and Run the Automation Object Model Code Examples

Discovering Code by Using the Code Model (Visual Basic)

Discovering Code by Using the Code Model (Visual C#)