PropertyDescriptorCollection.IList.Item[Int32] PropertyDescriptorCollection.IList.Item[Int32] PropertyDescriptorCollection.IList.Item[Int32] Property

定義

從集合中取得或設定在指定索引的項目。Gets or sets an item from the collection at a specified index.

property System::Object ^ System::Collections::IList::Item[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
object System.Collections.IList.Item[int index] { get; set; }
 Property Item(index As Integer) As Object Implements IList.Item

參數

index
Int32 Int32 Int32

要取得或設定的項目之以零起始的索引。The zero-based index of the item to get or set.

屬性值

在指定索引上的項目。The element at the specified index.

實作

例外狀況

集合是唯讀的。The collection is read-only.

index 小於 0。index is less than 0.

-或--or- index 等於或大於 Countindex is equal to or greater than Count.

適用於