Mimer SQL Data Provider
Add(String,Object) Method




Mimer.Data.Client Namespace > MimerParameterCollection Class > Add Method : Add(String,Object) Method
Name of parameter.
A MimerParameter object.
Adds a new MimerParameter to the MimerParameterCollection given parameter name and value.

This overload of Add is marked as obsolete. Use the replacement AddWithValue whenever you want to add a parameter by specifying its name and value.

Syntax

Parameters

parameterName
Name of parameter.
parameterValue
A MimerParameter object.

Return Value

The MimerParameter object created from the parameter values.
Exceptions
ExceptionDescription
The parameterValue is not a MimerParameter.
The MimerParameter specified in the value parameter is already added to this or another MimerParameterCollection.
Remarks
This overload of Add is marked as obsolete because of possible ambiguity with the overload of Add that takes a string and an MimerDbType, where passing an integer with the string could be interpreted as being either the parameter value or the corresponding MimerDbType value. Use the replacement AddWithValue whenever you want to add a parameter by specifying its name and value.
Requirements

.NET Framework
Version 4.6.2 or later

See Also

Reference

MimerParameterCollection Class
MimerParameterCollection Members
Overload List