Export (0) Print
Expand All

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)

[GuidAttribute("17730D4B-271F-11D7-8BF6-00B0D03DAA06")] 
public interface VCCodeMapEntry
/** @attribute GuidAttribute("17730D4B-271F-11D7-8BF6-00B0D03DAA06") */ 
public interface VCCodeMapEntry
GuidAttribute("17730D4B-271F-11D7-8BF6-00B0D03DAA06") 
public interface VCCodeMapEntry

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 Samples for Code Model Extensibility for information on how to compile and run this sample.

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
Show:
© 2014 Microsoft