ReportParameterCollection.Item Property (String)
Gets an ReportParameter object in the collection by its name.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
public ReportParameter this[
string name
] { get; }
public:
property ReportParameter^ default[
String^ name
] {
ReportParameter^ get(String^ name);
}
member Item :
name:string -> ReportParameter with get
Public ReadOnly Property Item (
name As String
) As ReportParameter
Parameters
name
Type: System.StringThe name of the ReportParameter object to get. This is the value of the Name property.
This parameter is not case sensitive.
Property Value
Type: Microsoft.Reporting.WinForms.ReportParameter
A ReportParameter with the specified name, if found; otherwise, a null reference (Nothing in Visual Basic).
Remarks
If multiple parameters in the collection match the name parameter, the first match is returned.
Examples
Legacy Code Example
See Also
Item Overload
ReportParameterCollection Class
Microsoft.Reporting.WinForms Namespace
Return to top