Delen via


ReportParameterCollection.Item Property (String)

Gets an ReportParameter object in the collection by its name.

Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As ReportParameter
'Usage
Dim instance As ReportParameterCollection
Dim name As String
Dim value As ReportParameter

value = instance(name)
public ReportParameter this [
    string name
] { get; }
public:
property ReportParameter^ default [String^] {
    ReportParameter^ get (String^ name);
}
/** @property */
public ReportParameter get_Item (String name)

Parameters

  • name
    The name of the ReportParameter object to get. This is the value of the Name property.

    This parameter is not case sensitive.

Property Value

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.

See Also

Reference

ReportParameterCollection Class
ReportParameterCollection Members
Microsoft.Reporting.WebForms Namespace