Class SqlDataSourceParameterCollection
Represents a collection of SqlDataSourceParameter objects.
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 SqlDataSourceParameterCollection class.
Declaration
public SqlDataSourceParameterCollection()
SqlDataSourceParameterCollection(SqlDataSourceParameter[])
Initializes a new instance of the SqlDataSourceParameterCollection class.
Declaration
public SqlDataSourceParameterCollection(SqlDataSourceParameter[] parameters)
Parameters
|
SqlDataSourceParameter[]
parameters
Specifies a range of parameters to add to the collection. |
SqlDataSourceParameterCollection(SqlDataSourceParameterCollection)
Initializes a new instance of the SqlDataSourceParameterCollection class.
Declaration
public SqlDataSourceParameterCollection(SqlDataSourceParameterCollection parameters)
Parameters
|
SqlDataSourceParameterCollection
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 SqlDataSourceParameter this[string name] { get; }
Parameters
|
System.String
name
Specifies the name of a parameter from the collection. |
Property Value
|
SqlDataSourceParameter
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, 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.String
name
Specifies the name of the new parameter to add to the collection. |
|
System.Data.DbType
dataType
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.String
name
Specifies the name of the new parameter to add to the collection. |
|
System.Data.DbType
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<SqlDataSourceParameter>)
Adds a range of parameters to the collection.
Declaration
public void AddRange(IEnumerable<SqlDataSourceParameter> parameters)
Parameters
|
System.Collections.Generic.IEnumerable<SqlDataSourceParameter>
parameters
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
|
SqlDataSourceParameterCollection
parameters
Specifies a range of parameters to add to the collection. |
Clone(SqlDataSourceParameterCollection)
Declaration
public void Clone(SqlDataSourceParameterCollection source)
Parameters
|
SqlDataSourceParameterCollection
source
|
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. |
FirstOrNullWithCaseFallback(String)
Declaration
public SqlDataSourceParameter FirstOrNullWithCaseFallback(string parameterName)
Parameters
|
System.String
parameterName
|
Returns
|
SqlDataSourceParameter
|
ToArray()
Converts the collection to an array of parameters.
Declaration
public SqlDataSourceParameter[] ToArray()
Returns
|
SqlDataSourceParameter[]
Array of parameters contained in the collection. |