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.1.26.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public class SqlDataSourceParameterCollection : Collection<SqlDataSourceParameter>
Inheritance: objectCollection<SqlDataSourceParameter>SqlDataSourceParameterCollection
Constructors
Initializes a new instance of the SqlDataSourceParameterCollection class.
public SqlDataSourceParameterCollection()
Initializes a new instance of the SqlDataSourceParameterCollection class.
public SqlDataSourceParameterCollection(SqlDataSourceParameter[] parameters)
Specifies a range of parameters to add to the collection.
Initializes a new instance of the SqlDataSourceParameterCollection class.
public SqlDataSourceParameterCollection(SqlDataSourceParameterCollection parameters)
Specifies a range of parameters to add to the collection.
Properties
Gets the parameter with the specified name from the collection.
public SqlDataSourceParameter 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, DbType dataType, object value)
Specifies the name of the new parameter to add to the collection.
dataTypeDbTypeSpecifies 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, DbType dataType)
Specifies the name of the new parameter to add to the collection.
dataTypeDbTypeSpecifies 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<SqlDataSourceParameter> parameters)
Specifies a range of parameters to add to the collection.
Adds a range of parameters to the collection.
public void AddRange(SqlDataSourceParameterCollection parameters)
Specifies a range of parameters to add to the collection.
public void Clone(SqlDataSourceParameterCollection source)
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.
public SqlDataSourceParameter FirstOrNullWithCaseFallback(string parameterName)
Converts the collection to an array of parameters.
public SqlDataSourceParameter[] ToArray()
Array of parameters contained in the collection.