Condividi tramite


CodeTypeRef2.TypeKind Property

Definition

Gets the base type of the CodeTypeRef.

public:
 property EnvDTE::vsCMTypeRef TypeKind { EnvDTE::vsCMTypeRef get(); };
public:
 property EnvDTE::vsCMTypeRef TypeKind { EnvDTE::vsCMTypeRef get(); };
[System.Runtime.InteropServices.DispId(3)]
public EnvDTE.vsCMTypeRef TypeKind { [System.Runtime.InteropServices.DispId(3)] get; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
member this.TypeKind : EnvDTE.vsCMTypeRef
Public ReadOnly Property TypeKind As vsCMTypeRef

Property Value

A vsCMTypeRef value.

Implements

Attributes

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.

Applies to