Partager via


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("17730D4B-271F-11D7-8BF6-00B0D03DAA06")> _
Public Interface VCCodeMapEntry

Dim instance As VCCodeMapEntry
[GuidAttribute("17730D4B-271F-11D7-8BF6-00B0D03DAA06")]
public interface VCCodeMapEntry
[GuidAttribute(L"17730D4B-271F-11D7-8BF6-00B0D03DAA06")]
public interface class VCCodeMapEntry
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