CompositeCollection.Item[Int32] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
索引器屬性,能在集合中以零為基礎的偏移量處檢索或替換項目。
public:
property System::Object ^ default[int] { System::Object ^ get(int itemIndex); void set(int itemIndex, System::Object ^ value); };
public object this[int itemIndex] { get; set; }
member this.Item(int) : obj with get, set
Default Public Property Item(itemIndex As Integer) As Object
參數
- itemIndex
- Int32
要取回或替換的物品的零基偏移量。
屬性值
該項目位於指定的零基偏移量。
實作
例外狀況
如果指數超出範圍。