Represents a collection of ObjectDataSourceParameter objects.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
[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.
public ObjectDataSourceParameterCollection()
Initializes a new instance of the ObjectDataSourceParameterCollection class.
public ObjectDataSourceParameterCollection(ObjectDataSourceParameter[] parameters)
Specifies a range of parameters to add to the collection.
Initializes a new instance of the ObjectDataSourceParameterCollection class.
public ObjectDataSourceParameterCollection(ObjectDataSourceParameterCollection parameters)
Specifies a range of parameters to add to the collection.
Properties
Gets the parameter with the specified name from the collection.
public ObjectDataSourceParameter this[string name] { get; }
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.
public void Add(string name, Type dataType, object value)
Specifies the name of the new parameter to add to the collection.
dataTypeTypeSpecifies the data type of the new parameter to add to the collection.
valueobjectSpecifies 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.
public void Add(string name, Type dataType)
Specifies the name of the new parameter to add to the collection.
dataTypeTypeSpecifies the data type of the new parameter to add to the collection.
Adds a new parameter with the specified name to the collection.
public void Add(string name)
Specifies the name of the new parameter to add to the collection.
Adds a range of parameters to the collection.
public void AddRange(IEnumerable<ObjectDataSourceParameter> parameters)
Specifies a range of parameters to add to the collection.
Adds a range of parameters to the collection.
public void AddRange(ObjectDataSourceParameterCollection parameters)
Specifies a range of parameters to add to the collection.
Clones the specified collection.
public void Clone(ObjectDataSourceParameterCollection source)
The source collection.
Contains(string)
bool
Determines if the collection contains a parameter with the specified name.
public bool Contains(string name)
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.
public ObjectDataSourceParameter[] ToArray()
Array of parameters contained in the collection.