Class ObjectDataSourceParameterCollection
Represents a collection of ObjectDataSourceParameter objects.
Inheritance
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class ObjectDataSourceParameterCollection : Collection<ObjectDataSourceParameter>, IList<ObjectDataSourceParameter>, ICollection<ObjectDataSourceParameter>, IList, ICollection, IReadOnlyList<ObjectDataSourceParameter>, IReadOnlyCollection<ObjectDataSourceParameter>, IEnumerable<ObjectDataSourceParameter>, IEnumerable
Constructors
ObjectDataSourceParameterCollection()
Initializes a new instance of the ObjectDataSourceParameterCollection class.
Declaration
public ObjectDataSourceParameterCollection()
ObjectDataSourceParameterCollection(ObjectDataSourceParameter[])
Initializes a new instance of the ObjectDataSourceParameterCollection class.
Declaration
public ObjectDataSourceParameterCollection(ObjectDataSourceParameter[] parameters)
Parameters
|
ObjectDataSourceParameter[]
parameters
Specifies a range of parameters to add to the collection. |
ObjectDataSourceParameterCollection(ObjectDataSourceParameterCollection)
Initializes a new instance of the ObjectDataSourceParameterCollection class.
Declaration
public ObjectDataSourceParameterCollection(ObjectDataSourceParameterCollection parameters)
Parameters
|
ObjectDataSourceParameterCollection
parameters
Specifies a range of parameters to add to the collection. |
Properties
Item[String]
Gets the parameter with the specified name from the collection.
Declaration
public ObjectDataSourceParameter this[string name] { get; }
Parameters
|
System.String
name
Specifies the name of a parameter from the collection. |
Property Value
|
ObjectDataSourceParameter
The parameter with the specified name from the collection. |
Methods
Add(String)
Adds a new parameter with the specified name to the collection.
Declaration
public void Add(string name)
Parameters
|
System.String
name
Specifies the name of the new parameter to add to the collection. |
Add(String, Type)
Adds a new parameter with the specified name and data type to the collection.
Declaration
public void Add(string name, Type dataType)
Parameters
|
System.String
name
Specifies the name of the new parameter to add to the collection. |
|
System.Type
dataType
Specifies the data type of the new parameter to add to the collection. |
Add(String, Type, Object)
Adds a new parameter with the specified name, data type and value to the collection.
Declaration
public void Add(string name, Type dataType, object value)
Parameters
|
System.String
name
Specifies the name of the new parameter to add to the collection. |
|
System.Type
dataType
Specifies the data type of the new parameter to add to the collection. |
|
System.Object
value
Specifies the value of the new parameter to add to the collection. |
AddRange(IEnumerable<ObjectDataSourceParameter>)
Adds a range of parameters to the collection.
Declaration
public void AddRange(IEnumerable<ObjectDataSourceParameter> parameters)
Parameters
|
System.Collections.Generic.IEnumerable<ObjectDataSourceParameter>
parameters
Specifies a range of parameters to add to the collection. |
AddRange(ObjectDataSourceParameterCollection)
Adds a range of parameters to the collection.
Declaration
public void AddRange(ObjectDataSourceParameterCollection parameters)
Parameters
|
ObjectDataSourceParameterCollection
parameters
Specifies a range of parameters to add to the collection. |
Clone(ObjectDataSourceParameterCollection)
Clones the specified collection.
Declaration
public void Clone(ObjectDataSourceParameterCollection source)
Parameters
|
ObjectDataSourceParameterCollection
source
The source collection. |
Contains(String)
Determines if the collection contains a parameter with the specified name.
Declaration
public bool Contains(string name)
Parameters
|
System.String
name
Specifies the name of a parameter from the collection. |
Returns
|
System.Boolean
True if a parameter with the specified name exists, False otherwise. |
ToArray()
Converts the collection to an array of parameters.
Declaration
public ObjectDataSourceParameter[] ToArray()
Returns
|
ObjectDataSourceParameter[]
Array of parameters contained in the collection. |