語言

ReportParameterCollection.Item[] 屬性

定義

從集合中取得報告參數。

多載

名稱 Description
Item[Int32]

取得集合中索引所示位置的參數。 在 C# 中,這個屬性就是類別的 ReportParameterCollection 索引器。

Item[String]

從集合取得報告參數。 所取得的參數是集合中與參數指定 name 名稱相符的參數。 在 C# 中,這個屬性就是類別的 ReportParameterCollection 索引器。

Item[Int32]

取得集合中索引所示位置的參數。 在 C# 中,這個屬性就是類別的 ReportParameterCollection 索引器。

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

參數

index
Int32

第 n 個位置的參數。

屬性值

回傳 ReportParameter 一個包含集合中索引位置參數的物件。

備註

在 JScript 中,你可以使用類型定義的預設索引屬性,但無法明確定義自己的屬性。 然而,在 expando 類別上指定屬性會自動提供一個預設的索引屬性,其型別為 Object ,索引型別為 String。

適用於

Item[String]

從集合取得報告參數。 所取得的參數是集合中與參數指定 name 名稱相符的參數。 在 C# 中,這個屬性就是類別的 ReportParameterCollection 索引器。

public:
 property Microsoft::ReportingServices::ReportRendering::ReportParameter ^ default[System::String ^] { Microsoft::ReportingServices::ReportRendering::ReportParameter ^ get(System::String ^ name); };
public Microsoft.ReportingServices.ReportRendering.ReportParameter this[string name] { get; }
member this.Item(string) : Microsoft.ReportingServices.ReportRendering.ReportParameter
Default Public ReadOnly Property Item(name As String) As ReportParameter

參數

name
String

參數的名稱。

屬性值

回傳 ReportParameter 一個包含與參數名稱相符 name 的物件。

備註

在 JScript 中,你可以使用類型定義的預設索引屬性,但無法明確定義自己的屬性。 然而,在 expando 類別上指定屬性會自動提供一個預設的索引屬性,其型別為 Object ,索引型別為 String。

適用於