April 2003
Beginner to intermediate
620 pages
21h 48m
English
SqlParameterCollection
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 ...
Read now
Unlock full access