Class SqlDataSourceParameterCollection
Represents a collection of Sql
Inheritance
Namespace: Telerik.Reporting
Assembly: Telerik.Reporting.dll
Syntax
public class SqlDataSourceParameterCollection : Collection<SqlDataSourceParameter>, IList<SqlDataSourceParameter>, ICollection<SqlDataSourceParameter>, IList, ICollection, IReadOnlyList<SqlDataSourceParameter>, IReadOnlyCollection<SqlDataSourceParameter>, IEnumerable<SqlDataSourceParameter>, IEnumerable
Constructors
SqlDataSourceParameterCollection()
Initializes a new instance of the Sql
Declaration
public SqlDataSourceParameterCollection()
SqlDataSourceParameterCollection(SqlDataSourceParameter[])
Initializes a new instance of the Sql
Declaration
public SqlDataSourceParameterCollection(SqlDataSourceParameter[] parameters)
Parameters
Sql Specifies a range of parameters to add to the collection. |
SqlDataSourceParameterCollection(SqlDataSourceParameterCollection)
Initializes a new instance of the Sql
Declaration
public SqlDataSourceParameterCollection(SqlDataSourceParameterCollection parameters)
Parameters
Sql 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 SqlDataSourceParameter this[string name] { get; }
Parameters
System. Specifies the name of a parameter from the collection. |
Property Value
Sql 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. 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
System. Specifies the name of the new parameter to add to the collection. |
System. 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
System. Specifies the name of the new parameter to add to the collection. |
System. Specifies the data type of the new parameter to add to the collection. |
System. 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
System. 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
Sql Specifies a range of parameters to add to the collection. |
Clone(SqlDataSourceParameterCollection)
Declaration
public void Clone(SqlDataSourceParameterCollection source)
Parameters
Contains(String)
Determines if the collection contains a parameter with the specified name.
Declaration
public bool Contains(string name)
Parameters
System. Specifies the name of a parameter from the collection. |
Returns
System. True if a parameter with the specified name exists, False otherwise. |
FirstOrNullWithCaseFallback(String)
Declaration
public SqlDataSourceParameter FirstOrNullWithCaseFallback(string parameterName)
Parameters
System.
|
Returns
ToArray()
Converts the collection to an array of parameters.
Declaration
public SqlDataSourceParameter[] ToArray()
Returns
Sql Array of parameters contained in the collection. |