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]

适用于