Share via


VCFileCodeModel.AddMap(String, String, Object) Method

Definition

Adds a map to the object.

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

Parameters

Name
String

Required. Specifies the name of the map code element.

ParameterText
String

Optional. A text string representing the list of map parameters.

Position
Object

Optional. Default = 0. The code element after which to add the new 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