VCFileCodeModel.AddMap - метод
Adds a map to the object.
Пространство имен: Microsoft.VisualStudio.VCCodeModel
Сборка: Microsoft.VisualStudio.VCCodeModel (в Microsoft.VisualStudio.VCCodeModel.dll)
Синтаксис
'Декларация
Function AddMap ( _
Name As String, _
ParameterText As String, _
Position As Object _
) As VCCodeMap
'Применение
Dim instance As VCFileCodeModel
Dim Name As String
Dim ParameterText As String
Dim Position As Object
Dim returnValue As VCCodeMap
returnValue = instance.AddMap(Name, ParameterText, _
Position)
VCCodeMap AddMap(
string Name,
string ParameterText,
Object Position
)
VCCodeMap^ AddMap(
String^ Name,
String^ ParameterText,
Object^ Position
)
function AddMap(
Name : String,
ParameterText : String,
Position : Object
) : VCCodeMap
Параметры
Name
Тип: System.StringRequired. Specifies the name of the map code element.
ParameterText
Тип: System.StringOptional. A text string representing the list of map parameters.
Position
Тип: System.ObjectOptional. 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.
Возвращаемое значение
Тип: Microsoft.VisualStudio.VCCodeModel.VCCodeMap
A VCCodeMap object.
Разрешения
- Полное доверие для непосредственно вызывающего метода. Этот член не может быть использован частично доверенным кодом. Дополнительные сведения см. в разделе Using Libraries from Partially Trusted Code.