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("E829130C-3C89-4643-AB50-000B129D0499")> _
Public Interface VCCodeMapEntry
'الاستخدام
Dim instance As VCCodeMapEntry
[GuidAttribute("E829130C-3C89-4643-AB50-000B129D0499")]
public interface VCCodeMapEntry
[GuidAttribute(L"E829130C-3C89-4643-AB50-000B129D0499")]
public interface class VCCodeMapEntry
[<GuidAttribute("E829130C-3C89-4643-AB50-000B129D0499")>]
type VCCodeMapEntry = interface end
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 How to: Compile Example Code for Visual C++ 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