New to Telerik Reporting? Start a free 30-day trial

Represents a collection of Parameter objects.

The collection does not allow adding two parameters with matching names.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter("Telerik.Reporting.Design.ParameterCollectionConverter, Telerik.Reporting.Design, Version=20.2.26.1007, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public class ParameterCollection : Collection<Parameter>

Inheritance: objectCollection<Parameter>ParameterCollection

Constructors

C#
public ParameterCollection()

Properties

Gets a Parameter by name.

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

The name of the parameter.

Property Value:

A parameter if found; otherwise null (Nothing)

Methods

Creates a Parameter with specific settings and adds it to the ParameterCollection or updates an existing one.

C#
public void Add(string name, object value)
Parameters:namestring

A string value that will be used as Name for the newly created Parameter.

valueobject

A object value that will be used as Value for the newly created Parameter. Can be an expression.

Adds or updates a sequence of Parameter objects in the ParameterCollection.

C#
public void AddRange(IEnumerable<Parameter> collection)
Parameters:collectionIEnumerable<Parameter>

An enumerable collection of Parameter objects to add to or update in the ParameterCollection.

The Parameter objects from the collection are either appended to the end of the ParameterCollection or updated in place if they already exist.

Determines whether the ParameterCollection contains a 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 ParameterCollection.

Returns:

bool

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

TODO: Add documentation.

C#
public override bool Equals(object obj)
Parameters:objobjectReturns:

bool

Overrides: object.Equals(object)

TODO: Add documentation.

C#
public bool Equals(ParameterCollection other)
Parameters:otherParameterCollectionReturns:

bool

TODO: Add documentation.

C#
public override int GetHashCode()
Returns:

int

Overrides: object.GetHashCode()

Determines the index of a specific parameter in the ParameterCollection.

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

The parameter name used to locate the parameter in the ParameterCollection.

Returns:

int

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

TODO: Add documentation.

C#
protected override void InsertItem(int index, Parameter item)
Parameters:indexintitemParameter

Overrides: Collection<Parameter>.InsertItem(int, Parameter)

TODO: Add documentation.

C#
protected override void SetItem(int index, Parameter item)
Parameters:indexintitemParameter

Overrides: Collection<Parameter>.SetItem(int, Parameter)

TODO: Add documentation.

C#
public override string ToString()
Returns:

string

Overrides: object.ToString()