SynchronizedReadOnlyCollection<T>.IList.Add(Object) SynchronizedReadOnlyCollection<T>.IList.Add(Object) SynchronizedReadOnlyCollection<T>.IList.Add(Object) Method

定义

将一个元素添加到集合中。Adds an element to the collection.

 virtual int System.Collections.IList.Add(System::Object ^ value) = System::Collections::IList::Add;
int IList.Add (object value);
Function Add (value As Object) As Integer Implements IList.Add

参数

value
Object Object Object

要添加到集合的元素。The element to be added to the collection.

返回

新元素的插入位置。The position into which the new element was inserted.

实现

异常

不能设置只读集合中的项。Items cannot be set in a read-only collection.

注解

不能向只读集合添加项。Items cannot be added to a read-only collection.

适用于