共用方式為


TableRowCollection.IList.Add(Object) 方法

定義

將物件加入至集合。

 virtual int System.Collections.IList.Add(System::Object ^ o) = System::Collections::IList::Add;
int IList.Add (object o);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (o As Object) As Integer Implements IList.Add

參數

o
Object

要新增至集合的物件。

傳回

Int32

物件加入集合所在處的索引。

實作

備註

一般而言,您應該使用 TableRowCollection.Add 方法將專案 TableRowCollection 加入物件。

方法是 IList.Add 明確的介面成員實作。 只有在 TableRowCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於

另請參閱