SynchronizedReadOnlyCollection<T>.IList.Add(Object) 方法

定義

新增項目至集合。

 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

要新增到集合的項目。

傳回

插入新項目的位置。

實作

例外狀況

這些項目無法在唯讀的集合中設定。

備註

這些項目無法加入至唯讀的集合中。

適用於