VCCodeMapEntry Interface

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

Namespace:  Microsoft.VisualStudio.VCCodeModel
Assembly:  Microsoft.VisualStudio.VCCodeModel (in Microsoft.VisualStudio.VCCodeModel.dll)

Syntax

[GuidAttribute("E829130C-3C89-4643-AB50-000B129D0499")]
public interface VCCodeMapEntry

Remarks

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.

See How to: Compile Example Code for Visual C++ Code Model Extensibility for information on how to compile and run this sample.

Examples

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)
    MsgBox(vcMap.Entries.Item(1).DisplayName)
End Sub

See Also

Reference

VCCodeMapEntry Members

Microsoft.VisualStudio.VCCodeModel Namespace