New to Telerik ReportingStart a free 30-day trial

Represents a collection of SqlDataSourceParameter objects.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

C#
[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.

C#
public SqlDataSourceParameterCollection()

Initializes a new instance of the SqlDataSourceParameterCollection class.

C#
public SqlDataSourceParameterCollection(SqlDataSourceParameter[] parameters)
Parameters:parametersSqlDataSourceParameter[]

Specifies a range of parameters to add to the collection.

Initializes a new instance of the SqlDataSourceParameterCollection class.

C#
public SqlDataSourceParameterCollection(SqlDataSourceParameterCollection parameters)
Parameters:parametersSqlDataSourceParameterCollection

Specifies a range of parameters to add to the collection.

Properties

Gets the parameter with the specified name from the collection.

C#
public SqlDataSourceParameter this[string name] { get; }
Parameters:namestring

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.

C#
public void Add(string name, DbType dataType, object value)
Parameters:namestring

Specifies the name of the new parameter to add to the collection.

dataTypeDbType

Specifies the data type of the new parameter to add to the collection.

valueobject

Specifies 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.

C#
public void Add(string name, DbType dataType)
Parameters:namestring

Specifies the name of the new parameter to add to the collection.

dataTypeDbType

Specifies the data type of the new parameter to add to the collection.

Adds a new parameter with the specified name to the collection.

C#
public void Add(string name)
Parameters:namestring

Specifies the name of the new parameter to add to the collection.

Adds a range of parameters to the collection.

C#
public void AddRange(IEnumerable<SqlDataSourceParameter> parameters)
Parameters:parametersIEnumerable<SqlDataSourceParameter>

Specifies a range of parameters to add to the collection.

Adds a range of parameters to the collection.

C#
public void AddRange(SqlDataSourceParameterCollection parameters)
Parameters:parametersSqlDataSourceParameterCollection

Specifies a range of parameters to add to the collection.

C#
public void Clone(SqlDataSourceParameterCollection source)
Parameters:sourceSqlDataSourceParameterCollection

Determines if the collection contains a parameter with the specified name.

C#
public bool Contains(string name)
Parameters:namestring

Specifies the name of a parameter from the collection.

Returns:

bool

True if a parameter with the specified name exists, False otherwise.

C#
public SqlDataSourceParameter FirstOrNullWithCaseFallback(string parameterName)
Parameters:parameterNamestringReturns:

SqlDataSourceParameter

Converts the collection to an array of parameters.

C#
public SqlDataSourceParameter[] ToArray()
Returns:

SqlDataSourceParameter[]

Array of parameters contained in the collection.