This documentation is archived and is not being maintained.

CodeElement Object

Visual Studio .NET 2003

Represents a code element or construct in a source file.

DTE

   Projects

      Project

         CodeModel

            CodeElements

               CodeElement

[Visual Basic .NET]
Public Interface CodeElement
    Inherits IDispatch
[Visual Basic 6]
Class CodeElement
[C++]
interface CodeElement : IDispatch
[C#]
public interface CodeElement : IDispatch
[JScript .NET]
public interface CodeElement extends IDispatch

Remarks

A code element can be any fragment of code, but generally, there is a CodeElement object for each definition or declarative syntax in a language. This means that for most top-level definitions or declarations in a file, or for any syntactic form in a class definition, and so forth, there is a corresponding CodeElement object.

Requirements

Namespace: EnvDTE

File: dte.tlb

See Also

CodeElement Object Properties, Methods, and Events | CodeElement Property (General Extensibility) | CodeElements Collection

Show: