Share via


ResultPropertyValueCollection.Item[Int32] 屬性

定義

Item[Int32] 屬性會取得位於指定索引處的屬性值。

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

參數

index
Int32

要擷取屬性值之以零起始的索引。

屬性值

在指定索引處的屬性值。

備註

在 C# 中,這個屬性是 ResultPropertyValueCollection 類別的索引子。

在 JScript 中,您可以使用類型所定義的預設索引屬性,但是不能明確定義自己的屬性。 不過,在類別上指定 expando 屬性時,會自動提供具有 Object 類型的預設索引屬性,以及的 String索引類型。

適用於