Condividi tramite


VCCodeModel.AddMap(String, Object, String, Object) Method

Definition

Adds a map entry to the object.

Microsoft::VisualStudio::VCCodeModel::VCCodeMap AddMap(std::wstring const & Name, winrt::Windows::Foundation::IInspectable const & Location, std::wstring const & ParameterText = "", winrt::Windows::Foundation::IInspectable const & Position);
[System.Runtime.InteropServices.DispId(565)]
public Microsoft.VisualStudio.VCCodeModel.VCCodeMap AddMap (string Name, object Location, string ParameterText = "", object Position);
[<System.Runtime.InteropServices.DispId(565)>]
abstract member AddMap : string * obj * string * obj -> Microsoft.VisualStudio.VCCodeModel.VCCodeMap
Public Function AddMap (Name As String, Location As Object, Optional ParameterText As String = "", Optional Position As Object) As VCCodeMap

Parameters

Name
String

Required. Specifies the name of the map entry.

Location
Object

Optional. The location.

ParameterText
String

Optional. The parameters to the map object.

Position
Object

Optional. Default = -1. 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.Because 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 VCCodeMap object.

Attributes

Applies to