CompositeCollection.Add(Object) 方法

定義

將指定的項目加入至集合。

public:
 virtual int Add(System::Object ^ newItem);
public int Add (object newItem);
abstract member Add : obj -> int
override this.Add : obj -> int
Public Function Add (newItem As Object) As Integer

參數

newItem
Object

要加入至集合中的新項目。

傳回

Int32

加入新項目之以零起始的索引。

實作

適用於