VCCodeMap.AddEntry(String, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Inserts a map entry into the map code element represented by the VCCodeMap object.
Microsoft::VisualStudio::VCCodeModel::VCCodeMapEntry AddEntry(std::wstring const & Name, winrt::Windows::Foundation::IInspectable const & Position);
[System.Runtime.InteropServices.DispId(583)]
public Microsoft.VisualStudio.VCCodeModel.VCCodeMapEntry AddEntry (string Name, object Position);
[<System.Runtime.InteropServices.DispId(583)>]
abstract member AddEntry : string * obj -> Microsoft.VisualStudio.VCCodeModel.VCCodeMapEntry
Public Function AddEntry (Name As String, Optional Position As Object) As VCCodeMapEntry
Parameters
- Name
- String
Required. The name of the map entry.
- Position
- Object
Optional. Default = 0. The code element after which to add the event element. If the value is a CodeElement, then the new element is added immediately after it.Since collections begin their count at one, passing 0 indicates that the new element should be placed at the beginning of the collection. A value of -1 means the element should be placed at the end.
Returns
A VCCodeMapEntry object.
- Attributes