VCCodeMapEntry - интерфейс
An object defining a map entry construct in a source file.
Пространство имен: Microsoft.VisualStudio.VCCodeModel
Сборка: Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)
Синтаксис
'Декларация
<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
Заметки
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