OleDbParameterCollection marshal by reference

OleDbParameterCollection marshal by reference

System.Data.OleDb (system.data.dll) sealed class

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  [string   parameterName   ]{set; get; }     public OleDbParameter  this  [int   index   ]{set; get; }  // Public Instance Methods  public int  Add  ( object   value   );  // implements IList  public OleDbParameter  Add  ( OleDbParameter   value   );      public OleDbParameter  Add  (string   parameterName   , object   value   );    public OleDbParameter  Add  (string   parameterName   , OleDbType   oleDbType   );     public OleDbParameter  Add  (string   parameterName   , OleDbType   oleDbType   , int   size   );    public OleDbParameter  Add  (string   parameterName   , OleDbType   oleDbType   , int   size   , string   sourceColumn   );    public void  Clear  (  );  // implements IList  public bool  Contains  ( object   value   );  // implements IList  public bool  Contains  ( string   value   );  // implements System.Data.IDataParameterCollection  public void  CopyTo  ( Array   array   , int   index   );  // implements ICollection  public IEnumerator  GetEnumerator  (  );  // implements IEnumerable  public int  IndexOf  ( object   value   );  // implements IList  public int  IndexOf  ( string   parameterName   );  // implements System.Data.IDataParameterCollection  public void  Insert  ( int   index   , object   value   );  // implements IList  public void  Remove  ( object   value   );  // implements IList  public void  RemoveAt  ( int   index   );  // implements IList  public void  RemoveAt  ( string   parameterName   );  // implements System.Data.IDataParameterCollection  } 

Hierarchy

System.Object figs/u2192.gif System.MarshalByRefObject figs/u2192.gif OleDbParameterCollection(System.Data.IDataParameterCollection, System.Collections.IList , System.Collections.ICollection , System.Collections.IEnumerable)

Returned By

OleDbCommand.Parameters



ADO. NET in a Nutshell
ADO.NET in a Nutshell
ISBN: 0596003617
EAN: 2147483647
Year: 2005
Pages: 415

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net