Share via


CodeTypeRef.TypeKind Property

Gets the base type of the CodeTypeRef.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.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 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 of 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

CodeTypeRef Interface

EnvDTE 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#)