Name
SqlParameterCollection
Synopsis
A collection of SqlParameter
objects representing
the set of parameters for a stored procedure or parameterized query
(and set through the SqlCommand.Parameters
property). This class also provides an overloaded Add( )
method that allows you to create and add a
SqlParameter
object to the collection in one step.
public sealed class SqlParameterCollection : MarshalByRefObject, System.Data.IDataParameterCollection, IList, ICollection, IEnumerable { // Public Instance Properties public int Count{get; } // implements ICollection public SqlParameter this[stringparameter
]{set; get; } public SqlParameter this[intindex
]{set; get; } // Public Instance Methods public int Add(objectvalue
); // implements IList public SqlParameter Add(SqlParametervalue
); public SqlParameter Add(stringparameterName
, objectvalue
); public SqlParameter Add(stringparameterName
, System.Data.SqlDbTypesqlDbType
); public SqlParameter Add(stringparameterName
, System.Data.SqlDbTypesqlDbType
, intsize
); public SqlParameter Add(stringparameterName
, System.Data.SqlDbTypesqlDbType
, intsize
, stringsourceColumn
); public void Clear( ); // implements IList public bool Contains(objectvalue
); // implements IList public bool Contains(stringvalue
); // implements System.Data.IDataParameterCollection public void CopyTo(Arrayarray
, intindex
); // implements ICollection public IEnumerator GetEnumerator( ); // implements IEnumerable public int IndexOf(objectvalue
); // implements IList ...
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.