ClassSqlDataSourceParameterCollection
Represents a collection of SqlDataSourceParameter objects.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
[TypeConverter("Telerik.Reporting.Design.SqlDataSourceParameterCollectionConverter, Telerik.Reporting.Design, Version=20.0.26.211, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public class SqlDataSourceParameterCollection : Collection<SqlDataSourceParameter>
Inheritance: objectCollection<SqlDataSourceParameter>SqlDataSourceParameterCollection
Constructors
SqlDataSourceParameterCollection()
Initializes a new instance of the SqlDataSourceParameterCollection class.
Declaration
public SqlDataSourceParameterCollection()
SqlDataSourceParameterCollection(SqlDataSourceParameterCollection)
Initializes a new instance of the SqlDataSourceParameterCollection class.
Declaration
public SqlDataSourceParameterCollection(SqlDataSourceParameterCollection parameters)
Parameters
parameters
SqlDataSourceParameterCollection
Specifies a range of parameters to add to the collection.
SqlDataSourceParameterCollection(SqlDataSourceParameter[])
Initializes a new instance of the SqlDataSourceParameterCollection class.
Declaration
public SqlDataSourceParameterCollection(SqlDataSourceParameter[] parameters)
Parameters
parameters
Specifies a range of parameters to add to the collection.
Properties
this[string]
Gets the parameter with the specified name from the collection.
Declaration
public SqlDataSourceParameter this[string name] { get; }
Parameters
name
string
Specifies the name of a parameter from the collection.
Property Value
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
name
string
Specifies the name of the new parameter to add to the collection.
Add(string, DbType)
Adds a new parameter with the specified name and data type to the collection.
Declaration
public void Add(string name, DbType dataType)
Parameters
name
string
Specifies the name of the new parameter to add to the collection.
dataType
DbType
Specifies the data type of the new parameter to add to the collection.
Add(string, DbType, object)
Adds a new parameter with the specified name, data type and value to the collection.
Declaration
public void Add(string name, DbType dataType, object value)
Parameters
name
string
Specifies the name of the new parameter to add to the collection.
dataType
DbType
Specifies the data type of the new parameter to add to the collection.
value
object
Specifies the value of the new parameter to add to the collection.
AddRange(IEnumerable<SqlDataSourceParameter>)
Adds a range of parameters to the collection.
Declaration
public void AddRange(IEnumerable<SqlDataSourceParameter> parameters)
Parameters
parameters
IEnumerable<SqlDataSourceParameter>
Specifies a range of parameters to add to the collection.
AddRange(SqlDataSourceParameterCollection)
Adds a range of parameters to the collection.
Declaration
public void AddRange(SqlDataSourceParameterCollection parameters)
Parameters
parameters
SqlDataSourceParameterCollection
Specifies a range of parameters to add to the collection.
Clone(SqlDataSourceParameterCollection)
Declaration
public void Clone(SqlDataSourceParameterCollection source)
Parameters
source
Contains(string)
Determines if the collection contains a parameter with the specified name.
Declaration
public bool Contains(string name)
Parameters
name
string
Specifies the name of a parameter from the collection.
Returns
bool
True if a parameter with the specified name exists, False otherwise.
FirstOrNullWithCaseFallback(string)
Declaration
public SqlDataSourceParameter FirstOrNullWithCaseFallback(string parameterName)
Parameters
parameterName
string
Returns
ToArray()
Converts the collection to an array of parameters.
Declaration
public SqlDataSourceParameter[] ToArray()
Returns
Array of parameters contained in the collection.