IDataParameterCollection IDataParameterCollection IDataParameterCollection IDataParameterCollection Interface


Collects all parameters relevant to a Command object and their mappings to DataSet columns, and is implemented by .NET Framework data providers that access data sources.

public interface class IDataParameterCollection : System::Collections::IList
public interface IDataParameterCollection : System.Collections.IList
type IDataParameterCollection = interface
    interface IList
    interface ICollection
    interface IEnumerable
Public Interface IDataParameterCollection
Implements IList


The IDataParameterCollection interface allows an inheriting class to implement a Parameter collection. For more information about Parameter classes, see Configuring Parameters and Parameter Data Types.

An application does not create an instance of the IDataParameterCollection interface directly, but creates an instance of a class that inherits IDataParameterCollection.

Classes that inherit IDataParameterCollection must implement the inherited members, and typically define additional members to add provider-specific functionality. For example, the IDataParameterCollection interface defines one implementation of the RemoveAt method. In turn, the OleDbParameterCollection class inherits this method, and defines two additional overloads of RemoveAt.

Notes to Implementers

When you inherit from the IDataParameterCollection interface, you should implement the following constructor.

Item Description
PrvParameterCollection() Creates an empty PrvParameterCollection class.


Item[String] Item[String] Item[String] Item[String]

Gets or sets the parameter at the specified index.


Contains(String) Contains(String) Contains(String) Contains(String)

Gets a value indicating whether a parameter in the collection has the specified name.

IndexOf(String) IndexOf(String) IndexOf(String) IndexOf(String)

Gets the location of the IDataParameter within the collection.

RemoveAt(String) RemoveAt(String) RemoveAt(String) RemoveAt(String)

Removes the IDataParameter from the collection.

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to