FileCodeModel2 FileCodeModel2 FileCodeModel2 FileCodeModel2 FileCodeModel2 FileCodeModel2 Interface

Definition

Allows access to programmatic constructs in a source file.

public interface class FileCodeModel2 : EnvDTE::FileCodeModel
public interface class FileCodeModel2 : EnvDTE::FileCodeModel
__interface FileCodeModel2 : EnvDTE::FileCodeModel
[System.Runtime.InteropServices.Guid("A65964DF-3A07-45EB-882A-DD04602016B9")]
[System.Runtime.InteropServices.TypeLibType(4160)]
public interface FileCodeModel2 : EnvDTE.FileCodeModel
type FileCodeModel2 = interface
    interface FileCodeModel
Public Interface FileCodeModel2
Implements FileCodeModel
Derived
Attributes
Implements

Remarks

The FileCodeModel object is the root of the code model for a project item or file.

Properties

CodeElements CodeElements CodeElements CodeElements CodeElements CodeElements

Gets a collection of code elements.

DTE DTE DTE DTE DTE DTE

Gets the top-level extensibility object.

IsBatchOpen IsBatchOpen IsBatchOpen IsBatchOpen IsBatchOpen IsBatchOpen

Gets a value indicating whether a batch code model updates is currently open.

Language Language Language Language Language Language

Gets the programming language used to author the code.

Parent Parent Parent Parent Parent Parent

Gets the immediate parent object of a FileCodeModel object.

ParseStatus ParseStatus ParseStatus ParseStatus ParseStatus ParseStatus

Used when the code model is built to determine whether the parse operation completed or encountered an error.

Methods

AddAttribute(String, String, Object) AddAttribute(String, String, Object) AddAttribute(String, String, Object) AddAttribute(String, String, Object) AddAttribute(String, String, Object) AddAttribute(String, String, Object)

Creates a new attribute code construct and inserts the code in the correct location.

AddClass(String, Object, Object, Object, vsCMAccess) AddClass(String, Object, Object, Object, vsCMAccess) AddClass(String, Object, Object, Object, vsCMAccess) AddClass(String, Object, Object, Object, vsCMAccess) AddClass(String, Object, Object, Object, vsCMAccess) AddClass(String, Object, Object, Object, vsCMAccess)

Creates a new class code construct and inserts the code in the correct location.

AddDelegate(String, Object, Object, vsCMAccess) AddDelegate(String, Object, Object, vsCMAccess) AddDelegate(String, Object, Object, vsCMAccess) AddDelegate(String, Object, Object, vsCMAccess) AddDelegate(String, Object, Object, vsCMAccess) AddDelegate(String, Object, Object, vsCMAccess)

Creates a new delegate code construct and inserts the code in the correct location.

AddEnum(String, Object, Object, vsCMAccess) AddEnum(String, Object, Object, vsCMAccess) AddEnum(String, Object, Object, vsCMAccess) AddEnum(String, Object, Object, vsCMAccess) AddEnum(String, Object, Object, vsCMAccess) AddEnum(String, Object, Object, vsCMAccess)

Creates a new enumeration code construct and inserts the code in the correct location.

AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) AddFunction(String, vsCMFunction, Object, Object, vsCMAccess) AddFunction(String, vsCMFunction, Object, Object, vsCMAccess)

Creates a new function code construct and inserts the code in the correct location.

AddImport(String, Object, String) AddImport(String, Object, String) AddImport(String, Object, String) AddImport(String, Object, String) AddImport(String, Object, String) AddImport(String, Object, String)

Creates a new code import statement and inserts the code in the correct location.

AddInterface(String, Object, Object, vsCMAccess) AddInterface(String, Object, Object, vsCMAccess) AddInterface(String, Object, Object, vsCMAccess) AddInterface(String, Object, Object, vsCMAccess) AddInterface(String, Object, Object, vsCMAccess) AddInterface(String, Object, Object, vsCMAccess)

Creates a new interface code construct and inserts the code in the correct location.

AddNamespace(String, Object) AddNamespace(String, Object) AddNamespace(String, Object) AddNamespace(String, Object) AddNamespace(String, Object) AddNamespace(String, Object)

Creates a new namespace code construct and inserts the code in the correct location.

AddStruct(String, Object, Object, Object, vsCMAccess) AddStruct(String, Object, Object, Object, vsCMAccess) AddStruct(String, Object, Object, Object, vsCMAccess) AddStruct(String, Object, Object, Object, vsCMAccess) AddStruct(String, Object, Object, Object, vsCMAccess) AddStruct(String, Object, Object, Object, vsCMAccess)

Creates a new structure code construct and inserts the code in the correct location.

AddVariable(String, Object, Object, vsCMAccess) AddVariable(String, Object, Object, vsCMAccess) AddVariable(String, Object, Object, vsCMAccess) AddVariable(String, Object, Object, vsCMAccess) AddVariable(String, Object, Object, vsCMAccess) AddVariable(String, Object, Object, vsCMAccess)

Creates a new variable code construct and inserts the code in the correct location.

BeginBatch() BeginBatch() BeginBatch() BeginBatch() BeginBatch() BeginBatch()

Suspends the occurrence of edit events until all changes to the code model have been applied.

CodeElementFromPoint(TextPoint, vsCMElement) CodeElementFromPoint(TextPoint, vsCMElement) CodeElementFromPoint(TextPoint, vsCMElement) CodeElementFromPoint(TextPoint, vsCMElement) CodeElementFromPoint(TextPoint, vsCMElement) CodeElementFromPoint(TextPoint, vsCMElement)

Returns a code element at a specific location in a source file.

ElementFromID(String) ElementFromID(String) ElementFromID(String) ElementFromID(String) ElementFromID(String) ElementFromID(String)

Used to receive specific CodeElement.

EndBatch() EndBatch() EndBatch() EndBatch() EndBatch() EndBatch()

Enables the suspended events to occur after the batch edit of the code model.

Remove(Object) Remove(Object) Remove(Object) Remove(Object) Remove(Object) Remove(Object)

Removes the specified code element from the source file.

Synchronize() Synchronize() Synchronize() Synchronize() Synchronize() Synchronize()

Ensures that all current code model events have been raised and the model has finished being generated.

Applies to