StateManagedCollection.IList.Add(Object) 方法

定義

將項目加入 StateManagedCollection 集合。

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

參數

value
Object

要加入至 objectStateManagedCollection

傳回

Int32

插入新項目的位置。

實作

例外狀況

指定的 valuenull

備註

OnValidateOnInsert 方法會在專案加入至集合之前呼叫,並在 OnInsertComplete 加入 專案之後呼叫 方法。

適用於

另請參閱