Επεξεργασία

Κοινή χρήση μέσω


IDataParameterCollection Interface

Definition

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

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

Remarks

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.

Properties

Count

Gets the number of elements contained in the ICollection.

(Inherited from ICollection)
IsFixedSize

Gets a value indicating whether the IList has a fixed size.

(Inherited from IList)
IsReadOnly

Gets a value indicating whether the IList is read-only.

(Inherited from IList)
IsSynchronized

Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(Inherited from ICollection)
Item[Int32]

Gets or sets the element at the specified index.

(Inherited from IList)
Item[String]

Gets or sets the parameter at the specified index.

SyncRoot

Gets an object that can be used to synchronize access to the ICollection.

(Inherited from ICollection)

Methods

Add(Object)

Adds an item to the IList.

(Inherited from IList)
Clear()

Removes all items from the IList.

(Inherited from IList)
Contains(Object)

Determines whether the IList contains a specific value.

(Inherited from IList)
Contains(String)

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

CopyTo(Array, Int32)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

(Inherited from ICollection)
GetEnumerator()

Returns an enumerator that iterates through a collection.

(Inherited from IEnumerable)
IndexOf(Object)

Determines the index of a specific item in the IList.

(Inherited from IList)
IndexOf(String)

Gets the location of the IDataParameter within the collection.

Insert(Int32, Object)

Inserts an item to the IList at the specified index.

(Inherited from IList)
Remove(Object)

Removes the first occurrence of a specific object from the IList.

(Inherited from IList)
RemoveAt(Int32)

Removes the IList item at the specified index.

(Inherited from IList)
RemoveAt(String)

Removes the IDataParameter from the collection.

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to