Name
Command.NamedParameters Property — (Version 2.6)
Synopsis
command.NamedParameters = Boolean
The NamedParameters property indicates whether the data provider should use parameter names to match the Command object’s parameters or if it should match them in the order that they appear.
Datatype
Boolean
Description
If the NamedParameters property is set to True,
the name properties of each Parameter object in the current Command
objects, Parameters collection, will be passed to the data provider
so that they can be used to map the parameters to the values in
either the CommandText or the CommandStream Property.
If this property is set to False, then the
parameters are not matched by name, but rather by the order in which
they appear.
See Also
Command.CommandText Property, Command.CommandStream Property, Parameters Collection
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access