AceCollection.Item[Int32] 屬性

定義

在指定的索引位置上取得或設定項目。 在 C# 中,這個屬性是 AceCollection 類別的索引子。

public:
 property Microsoft::ReportingServices::Interfaces::AceStruct ^ default[int] { Microsoft::ReportingServices::Interfaces::AceStruct ^ get(int index); };
public Microsoft.ReportingServices.Interfaces.AceStruct this[int index] { get; }
member this.Item(int) : Microsoft.ReportingServices.Interfaces.AceStruct
Default Public ReadOnly Property Item(index As Integer) As AceStruct

參數

index
Int32

要取得或設定的以零為起始元素索引。

屬性值

AceStruct

在指定索引上的項目。

備註

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

這個屬性可讓您使用下列語法來存取集合中的特定元素: myCollection[index]

適用於