Class
SqlDataSourceParameterCollection

Represents a collection of SqlDataSourceParameter objects.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[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

cs-api-definition
public SqlDataSourceParameterCollection()

SqlDataSourceParameterCollection(SqlDataSourceParameterCollection)

Initializes a new instance of the SqlDataSourceParameterCollection class.

Declaration

cs-api-definition
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

cs-api-definition
public SqlDataSourceParameterCollection(SqlDataSourceParameter[] parameters)

Parameters

parameters

SqlDataSourceParameter[]

Specifies a range of parameters to add to the collection.

Properties

this[string]

Gets the parameter with the specified name from the collection.

Declaration

cs-api-definition
public SqlDataSourceParameter this[string name] { get; }

Parameters

name

string

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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
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

cs-api-definition
public void AddRange(SqlDataSourceParameterCollection parameters)

Parameters

parameters

SqlDataSourceParameterCollection

Specifies a range of parameters to add to the collection.

Clone(SqlDataSourceParameterCollection)

Declaration

cs-api-definition
public void Clone(SqlDataSourceParameterCollection source)

Parameters

source

SqlDataSourceParameterCollection

Contains(string)

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

Declaration

cs-api-definition
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

cs-api-definition
public SqlDataSourceParameter FirstOrNullWithCaseFallback(string parameterName)

Parameters

parameterName

string

Returns

SqlDataSourceParameter

ToArray()

Converts the collection to an array of parameters.

Declaration

cs-api-definition
public SqlDataSourceParameter[] ToArray()

Returns

SqlDataSourceParameter[]

Array of parameters contained in the collection.