Partager via


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

Definition

Adds a map entry to the parent object.

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

Parameters

Name
String

Required. Specifies the name of the map entry.

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.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.

Location
Object

Optional. The location.

Returns

A VCCodeMap object.

Attributes

Applies to