CodeTypeRef.CodeType CodeTypeRef.CodeType CodeTypeRef.CodeType CodeTypeRef.CodeType Property


Sets or gets information describing this item's kind of CodeTypeRef object.

 property EnvDTE::CodeType ^ CodeType { EnvDTE::CodeType ^ get(); void set(EnvDTE::CodeType ^ value); };
[get: System.Runtime.InteropServices.DispId(4)]
[get: System.Runtime.InteropServices.TypeLibFunc(1024)]
[set: System.Runtime.InteropServices.DispId(4)]
[set: System.Runtime.InteropServices.TypeLibFunc(1024)]
public EnvDTE.CodeType CodeType { get; set; }
member this.CodeType : EnvDTE.CodeType with get, set
Public Property CodeType As CodeType
Property Value


CodeType returns the CodeType that this type reference represents if TypeKind is vsCMTypeRef.


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

Applies to