Name

Parameters

Synopsis


ParameterCollection col = Command.Parameters;

If the Command contains a parameterized query or a stored procedure call, the Parameters collection will contain a group of Parameter objects, one for each input and output parameter. In addition, if the stored procedure uses a return value, this should be the first Parameter object in the collection. Parameter objects are described in Chapter 20.

Because the Parameter object is provider-specific, the Parameters collection is also provider-specific and implements IDataParameterCollection. The IDataParameter-Collection defines a small set of members, including a default indexer that allows you to retrieve Parameter objects by their assigned names.