This documentation is archived and is not being maintained.

VCCodeMapEntry Object

Visual Studio .NET 2003

An object defining a map entry construct in a source file.

[Visual Basic .NET]
Public Interface VCCodeMapEntry
   Inherits IDispatch
[Visual Basic 6]
Class VCCodeMapEntry
interface VCCodeMapEntry : IDispatch
public interface VCCodeMapEntry : IDispatch
[JScript .NET]
public interface VCCodeMapEntry extends IDispatch


The VCCodeMapEntry object represents a map entry code element in a source file, allowing access or modification to existing map elements at the map entry level.


Namespace: Microsoft.VisualStudio.VCCodeModel

File: vcpkg.dll


This example retrieves the first map entry element in the first VCCodeMap object of the current solution and displays it in a message box.

Sub GetFirstMapEntry()
    Dim vcCM As VCCodeModel
    Dim vcMap As VCCodeMap
    vcCM = DTE.Solution.Item(1).CodeModel
    vcMap = vcCM.Maps.Item(1)
End Sub

See Samples for Code Model Extensibility for information on how to compile and run this sample.

See Also

VCCodeMapEntry Object Properties, Methods, and Events | Visual C++ Extensibility Object Model