共用方式為


ReportParameterCollection.Item[] Property

Definition

Gets a report parameter from the collection.

Overloads

Item[Int32]

Gets the parameter located in the collection at the position indicated by the index. In C#, this property is the indexer for the ReportParameterCollection class.

Item[String]

Gets the report parameter from the collection. The parameter retrieved is the parameter from the collection that matches the name specified in the name parameter. In C#, this property is the indexer for the ReportParameterCollection class.

Item[Int32]

Gets the parameter located in the collection at the position indicated by the index. In C#, this property is the indexer for the ReportParameterCollection class.

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

Parameters

index
Int32

The parameter at the nth position.

Property Value

Returns a ReportParameter object containing the parameter found in the collection at the position indicated by the index.

Remarks

In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Applies to

Item[String]

Gets the report parameter from the collection. The parameter retrieved is the parameter from the collection that matches the name specified in the name parameter. In C#, this property is the indexer for the ReportParameterCollection class.

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

Parameters

name
String

The name of the parameter.

Property Value

Returns a ReportParameter object containing the parameter that matches the name specified in the name parameter.

Remarks

In JScript, you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Applies to