Name
OleDbParameterCollection
Synopsis
Represents a collection of OleDbParameter
objects
that are used with a single stored procedure or parameterized query
and are added to the collection accessed using
OleDbCommand.Parameters
. You can retrieve an
individual OleDbCommand
object by its index or by
its parameter name. This class also provides an overloaded
Add( )
method that lets you create and add an
OleDbParameter
object to the collection in one
step.
public sealed class OleDbParameterCollection : MarshalByRefObject, System.Data.IDataParameterCollection, IList, ICollection, IEnumerable { // Public Instance Properties public int Count{get; } // implements ICollection public OleDbParameter this[stringparameterName
]{set; get; } public OleDbParameter this[intindex
]{set; get; } // Public Instance Methods public int Add(objectvalue
); // implements IList public OleDbParameter Add(OleDbParametervalue
); public OleDbParameter Add(stringparameterName
, objectvalue
); public OleDbParameter Add(stringparameterName
, OleDbTypeoleDbType
); public OleDbParameter Add(stringparameterName
, OleDbTypeoleDbType
, intsize
); public OleDbParameter Add(stringparameterName
, OleDbTypeoleDbType
, 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 ...
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.