Class ReportParameterCollectionBase<TReportParameter>
Represents a base class for collection of IReportParameter objects.
Inheritance
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public abstract class ReportParameterCollectionBase<TReportParameter> : Collection<TReportParameter>, IList<TReportParameter>, ICollection<TReportParameter>, IList, ICollection, IReadOnlyList<TReportParameter>, IReadOnlyCollection<TReportParameter>, IEnumerable<TReportParameter>, IEnumerable where TReportParameter : class, IReportParameter
Type Parameters
TReportParameter
|
Constructors
ReportParameterCollectionBase()
Declaration
protected ReportParameterCollectionBase()
Properties
Item[String]
Gets a report parameter by name.
Declaration
public TReportParameter this[string name] { get; }
Parameters
System.String
name
The name of the report parameter. |
Property Value
TReportParameter
A report parameter if found; otherwise null (Nothing) |
Methods
AddRange(IEnumerable<TReportParameter>)
Adds an enumerable of ReportParameter objects to the ReportParameterCollection.
Declaration
public void AddRange(IEnumerable<TReportParameter> enumerable)
Parameters
System.Collections.Generic.IEnumerable<TReportParameter>
enumerable
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.
Contains(String)
Determines whether the ReportParameterCollection contains a report parameter with a specific name.
Declaration
public bool Contains(string name)
Parameters
System.String
name
A System.String that specifies the parameter name for which to search the elements of the ReportParameterCollection. |
Returns
System.Boolean
Returns a System.Boolean value indicating whether the ReportParameterCollection object contains a report parameter with the specified name. |
IndexOf(String)
Determines the index of a specific report parameter in the ReportParameterCollection.
Declaration
public int IndexOf(string name)
Parameters
System.String
name
The parameter name used to locate the report parameter in the ReportParameterCollection. |
Returns
System.Int32
The index of report parameter if found in the ReportParameterCollection; otherwise, -1. |