CodeTypeRef2 CodeTypeRef2 CodeTypeRef2 CodeTypeRef2 Interface

Definition

Defines the type of a construct in a source file.

public interface class CodeTypeRef2 : EnvDTE::CodeTypeRef
[System.Runtime.InteropServices.Guid("9883C07A-FA07-4CE7-BD8E-01E1A3F3A3F7")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface CodeTypeRef2 : EnvDTE.CodeTypeRef
type CodeTypeRef2 = interface
    interface CodeTypeRef
Public Interface CodeTypeRef2
Implements CodeTypeRef
Attributes
Implements

Remarks

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.

Properties

AsFullName AsFullName AsFullName AsFullName

Gets the fully qualified name of the CodeTypeRef object.

AsString AsString AsString AsString

Gets a string to use for displaying the CodeTypeRef object.

CodeType CodeType CodeType CodeType

Gets or sets information describing what kind of CodeTypeRef object this item is.

DTE DTE DTE DTE

Gets the top-level extensibility object.

ElementType ElementType ElementType ElementType

Gets or sets an object representing the programmatic type.

IsGeneric IsGeneric IsGeneric IsGeneric

Gets a value indicating whether the current class or struct is a generic.

Parent Parent Parent Parent

Gets the immediate parent object of a CodeTypeRef object.

Rank Rank Rank Rank

If this item is an array, gets or sets the number of dimensions in this array.

TypeKind TypeKind TypeKind TypeKind

Gets the base type of the CodeTypeRef.

Methods

CreateArrayType(Int32) CreateArrayType(Int32) CreateArrayType(Int32) CreateArrayType(Int32)

Creates an array of specified type, and inserts it into the code in the correct location.

Applies to