語言

PropertyValueCollection.Item[Int32] 屬性

定義

取得或設定位於該集合指定索引處的屬性值。

public:
 property System::Object ^ default[int] { System::Object ^ get(int index); void set(int index, System::Object ^ value); };
public object? this[int index] { get; set; }
public object this[int index] { get; set; }
member this.Item(int) : obj with get, set
Default Public Property Item(index As Integer) As Object

參數

index
Int32

房產價值的零基指數。

屬性值

在指定索引下的財產價值。

例外狀況

屬性值為空參考(Nothing 在 Visual Basic)。

索引小於零(0)或大於集合大小。

備註

在 C# 中,這個屬性就是類別的 PropertyValueCollection 索引器。

在 JScript 中,你可以使用類型定義的預設索引屬性,但無法明確定義自己的屬性。 然而,在類別上指定 expando 屬性會自動提供一個預設的索引屬性,其型別為 Object,索引型別為 String。

適用於