New to Telerik ReportingStart a free 30-day trial

Represents a collection of ObjectDataSourceParameter objects.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[TypeConverter("Telerik.Reporting.Design.ObjectDataSourceParameterCollectionConverter, Telerik.Reporting.Design, Version=20.1.26.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public class ObjectDataSourceParameterCollection : Collection<ObjectDataSourceParameter>

Inheritance: objectCollection<ObjectDataSourceParameter>ObjectDataSourceParameterCollection

Constructors

Initializes a new instance of the ObjectDataSourceParameterCollection class.

C#
public ObjectDataSourceParameterCollection()

Initializes a new instance of the ObjectDataSourceParameterCollection class.

C#
public ObjectDataSourceParameterCollection(ObjectDataSourceParameter[] parameters)
Parameters:parametersObjectDataSourceParameter[]

Specifies a range of parameters to add to the collection.

Initializes a new instance of the ObjectDataSourceParameterCollection class.

C#
public ObjectDataSourceParameterCollection(ObjectDataSourceParameterCollection parameters)
Parameters:parametersObjectDataSourceParameterCollection

Specifies a range of parameters to add to the collection.

Properties

Gets the parameter with the specified name from the collection.

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

Specifies the name of a parameter from the collection.

Property Value:

The parameter with the specified name from the collection.

Methods

Adds a new parameter with the specified name, data type and value to the collection.

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

Specifies the name of the new parameter to add to the collection.

dataTypeType

Specifies the data type of the new parameter to add to the collection.

valueobject

Specifies the value of the new parameter to add to the collection.

Adds a new parameter with the specified name and data type to the collection.

C#
public void Add(string name, Type dataType)
Parameters:namestring

Specifies the name of the new parameter to add to the collection.

dataTypeType

Specifies the data type of the new parameter to add to the collection.

Adds a new parameter with the specified name to the collection.

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

Specifies the name of the new parameter to add to the collection.

Adds a range of parameters to the collection.

C#
public void AddRange(IEnumerable<ObjectDataSourceParameter> parameters)
Parameters:parametersIEnumerable<ObjectDataSourceParameter>

Specifies a range of parameters to add to the collection.

Adds a range of parameters to the collection.

C#
public void AddRange(ObjectDataSourceParameterCollection parameters)
Parameters:parametersObjectDataSourceParameterCollection

Specifies a range of parameters to add to the collection.

Clones the specified collection.

C#
public void Clone(ObjectDataSourceParameterCollection source)
Parameters:sourceObjectDataSourceParameterCollection

The source collection.

Determines if the collection contains a parameter with the specified name.

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

Specifies the name of a parameter from the collection.

Returns:

bool

True if a parameter with the specified name exists, False otherwise.

Converts the collection to an array of parameters.

C#
public ObjectDataSourceParameter[] ToArray()
Returns:

ObjectDataSourceParameter[]

Array of parameters contained in the collection.