CodeTypeParameterCollection.Add 方法

定义

将指定的 CodeTypeParameter 对象添加到集合中。

重载

名称 说明
Add(CodeTypeParameter)

将指定的 CodeTypeParameter 对象添加到集合中。

Add(String)

使用指定的数据类型名称将指定 CodeTypeParameter 对象添加到集合中。

Add(CodeTypeParameter)

Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs

将指定的 CodeTypeParameter 对象添加到集合中。

public:
 int Add(System::CodeDom::CodeTypeParameter ^ value);
public int Add(System.CodeDom.CodeTypeParameter value);
member this.Add : System.CodeDom.CodeTypeParameter -> int
Public Function Add (value As CodeTypeParameter) As Integer

参数

value
CodeTypeParameter

CodeTypeParameter 添加的。

返回

插入新元素的从零开始的索引。

另请参阅

适用于

Add(String)

Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs
Source:
CodeTypeParameterCollection.cs

使用指定的数据类型名称将指定 CodeTypeParameter 对象添加到集合中。

public:
 void Add(System::String ^ value);
public void Add(string value);
member this.Add : string -> unit
Public Sub Add (value As String)

参数

value
String

要向其添加 CodeTypeParameter 对象的数据类型的名称。

适用于