ReportParameterCollection.Item[] 屬性

定義

從集合中取得報表參數。

多載

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

傳回 ReportParameter 物件,其中包含位於集合中由索引所指示位置的參數。

備註

在 JScript 中,您可以使用類型所定義的預設索引屬性,但是不能明確定義自己的屬性。 但是,在類別上指定 expando 屬性 (Attribute) 會自動提供預設索引屬性 (Property),該屬性 (Property) 的類型為 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

傳回 ReportParameter 物件,其中包含符合 name 參數內所指定名稱的參數。

備註

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

適用於