次の方法で共有


ResourceOperationsCollection.Item プロパティ

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

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

構文

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

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

パラメーター

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

プロパティ値

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

説明

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

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

関連項目

参照

ResourceOperationsCollection クラス

Microsoft.ReportingServices.Interfaces 名前空間