New to Telerik ReportingStart a free 30-day trial

Represents a base class for collection of IReportParameter objects.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Type Parameters:

TReportParameter

Syntax:

C#
public abstract class ReportParameterCollectionBase<TReportParameter> : Collection<TReportParameter> where TReportParameter : class, IReportParameter

Inheritance: objectCollection<TReportParameter>ReportParameterCollectionBase<TReportParameter>

Derived Classes: ReportParameterCollection

Constructors

C#
protected ReportParameterCollectionBase()

Properties

this[string]

TReportParameter

Gets a report parameter by name.

C#
public TReportParameter this[string name] { get; }
Parameters:namestring

The name of the report parameter.

Property Value:

A report parameter if found; otherwise null (Nothing)

Methods

Adds an enumerable of ReportParameter objects to the ReportParameterCollection.

C#
public void AddRange(IEnumerable<TReportParameter> enumerable)
Parameters:enumerableIEnumerable<TReportParameter>

An enumerable of ReportParameter objects to add to the ReportParameterCollection.

Remarks:

The ReportParameter objects returned from the enumerable are appended to the end of the ReportParameterCollection.

Determines whether the ReportParameterCollection contains a report parameter with a specific name.

C#
public bool Contains(string name)
Parameters:namestring

A string that specifies the parameter name for which to search the elements of the ReportParameterCollection.

Returns:

bool

Returns a bool value indicating whether the ReportParameterCollection object contains a report parameter with the specified name.

Determines the index of a specific report parameter in the ReportParameterCollection.

C#
public int IndexOf(string name)
Parameters:namestring

The parameter name used to locate the report parameter in the ReportParameterCollection.

Returns:

int

The index of report parameter if found in the ReportParameterCollection; otherwise, -1.