This topic has not yet been rated - Rate this topic

DbParameterCollection Class

The base class for a collection of parameters relevant to a DbCommand.

Namespace:  System.Data.Common
Assembly:  System.Data (in System.Data.dll)
public abstract class DbParameterCollection : MarshalByRefObject, 
	IDataParameterCollection, IList, ICollection, IEnumerable

The DbParameterCollection type exposes the following members.

  Name Description
Protected method Supported by the XNA Framework DbParameterCollection Initializes a new instance of the DbParameterCollection class.
Top
  Name Description
Public property Supported by the XNA Framework Count Specifies the number of items in the collection.
Public property Supported by the XNA Framework IsFixedSize Specifies whether the collection is a fixed size.
Public property Supported by the XNA Framework IsReadOnly Specifies whether the collection is read-only.
Public property Supported by the XNA Framework IsSynchronized Specifies whether the collection is synchronized.
Public property Supported by the XNA Framework Item[Int32] Gets and sets the DbParameter at the specified index.
Public property Supported by the XNA Framework Item[String] Gets and sets the DbParameter with the specified name.
Public property Supported by the XNA Framework SyncRoot Specifies the Object to be used to synchronize access to the collection.
Top
  Name Description
Public method Supported by the XNA Framework Add Adds the specified DbParameter object to the DbParameterCollection.
Public method Supported by the XNA Framework AddRange Adds an array of items with the specified values to the DbParameterCollection.
Public method Supported by the XNA Framework Clear Removes all DbParameter values from the DbParameterCollection.
Public method Supported by the XNA Framework Contains(Object) Indicates whether a DbParameter with the specified Value is contained in the collection.
Public method Supported by the XNA Framework Contains(String) Indicates whether a DbParameter with the specified name exists in the collection.
Public method Supported by the XNA Framework CopyTo Copies an array of items to the collection starting at the specified index.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Supported by the XNA Framework Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Supported by the XNA Framework Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by the XNA Framework GetEnumerator Exposes the GetEnumerator method, which supports a simple iteration over a collection by a .NET Framework data provider.
Public method Supported by the XNA Framework GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by the XNA Framework GetParameter(Int32) Returns the DbParameter object at the specified index in the collection.
Protected method Supported by the XNA Framework GetParameter(String) Returns DbParameter the object with the specified name.
Public method Supported by the XNA Framework GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the XNA Framework IndexOf(Object) Returns the index of the specified DbParameter object.
Public method Supported by the XNA Framework IndexOf(String) Returns the index of the DbParameter object with the specified name.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the XNA Framework Insert Inserts the specified index of the DbParameter object with the specified name into the collection at the specified index.
Protected method Supported by the XNA Framework MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method Supported by the XNA Framework Remove Removes the specified DbParameter object from the collection.
Public method Supported by the XNA Framework RemoveAt(Int32) Removes the DbParameter object at the specified from the collection.
Public method Supported by the XNA Framework RemoveAt(String) Removes the DbParameter object with the specified name from the collection.
Protected method Supported by the XNA Framework SetParameter(Int32, DbParameter) Sets the DbParameter object at the specified index to a new value.
Protected method Supported by the XNA Framework SetParameter(String, DbParameter) Sets the DbParameter object with the specified name to a new value.
Public method Supported by the XNA Framework ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Supported by the XNA Framework Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method Supported by the XNA Framework OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Top
  Name Description
Explicit interface implemetation Private property Supported by the XNA Framework IDataParameterCollection.Item Gets or sets the parameter at the specified index.
Explicit interface implemetation Private property Supported by the XNA Framework IList.Item Gets or sets the element at the specified index.
Top

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ