Item プロパティ

指定したインデックスにある要素を取得または設定します。C# の場合、このプロパティは AceCollection クラスのインデクサとなります。

名前空間:  Microsoft.ReportingServices.Interfaces
アセンブリ:   Microsoft.ReportingServices.SharePoint.UI.WebParts (Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)
  Microsoft.ReportingServices.Interfaces (Microsoft.ReportingServices.Interfaces.dll)

構文

'宣言
Public ReadOnly Default Property Item ( _
    index As Integer _
) As AceStruct
    Get
'使用
Dim instance As AceCollection
Dim index As Integer
Dim value As AceStruct

value = instance(index)
public AceStruct this[
    int index
] { get; }
public:
property AceStruct^ default[int index] {
    AceStruct^ get (int index);
}
member Item : AceStruct
JScript はインデックス化されたプロパティの使用をサポートしていますが、新規の宣言はサポートしていません。

パラメーター

  • index
    型: System. . :: . .Int32
    取得または設定する要素の 0 から始まるインデックスです。

プロパティ値

型: Microsoft.ReportingServices.Interfaces. . :: . .AceStruct
指定したインデックスにある要素です。

説明

JScript では、型によって定義される既定のインデックス付きプロパティを使用できますが、独自のプロパティを明示的に定義することはできません。ただし、クラスで expando 属性を指定すると、型が Object で、インデックスの種類が String である、既定のインデックス付きプロパティが自動的に提供されます。

このプロパティは、構文 myCollection[index] を使用して、コレクションの特定の要素にアクセスする機能を提供します。