CodeTypeParameterCollection.Add 方法
定义
将指定的 CodeTypeParameter 对象添加到集合。Adds the specified CodeTypeParameter object to the collection.
重载
| Add(CodeTypeParameter) |
将指定的 CodeTypeParameter 对象添加到集合。Adds the specified CodeTypeParameter object to the collection. |
| Add(String) |
使用指定的数据类型名称将指定的 CodeTypeParameter 对象添加到集合。Adds the specified CodeTypeParameter object to the collection using the specified data type name. |
Add(CodeTypeParameter)
将指定的 CodeTypeParameter 对象添加到集合。Adds the specified CodeTypeParameter object to the collection.
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。The CodeTypeParameter to add.
返回
从零开始的索引;此处插入了新元素。The zero-based index at which the new element was inserted.
另请参阅
适用于
Add(String)
使用指定的数据类型名称将指定的 CodeTypeParameter 对象添加到集合。Adds the specified CodeTypeParameter object to the collection using the specified data type name.
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 对象的数据类型的名称。The name of a data type for which to add the CodeTypeParameter object to the collection.