Mimer SQL Data Provider
AddWithValue Method




Mimer.Data.Client Namespace > MimerParameterCollection Class : AddWithValue Method
The name of the parameter.
The value to be added.
Adds a new MimerParameter to the MimerParameterCollection given parameter name and value.
Syntax
'Declaration
 
Public Function AddWithValue( _
   ByVal parameterName As String, _
   ByVal parameterValue As Object _
) As MimerParameter
public function AddWithValue( 
    parameterName: String;
    parameterValue: TObject
): MimerParameter; 
public function AddWithValue( 
   parameterName : String,
   parameterValue : Object
) : MimerParameter;

Parameters

parameterName
The name of the parameter.
parameterValue
The value to be added.

Return Value

The MimerParameter object created from the parameter values.
Exceptions
ExceptionDescription
The MimerParameter specified in the value parameter is already added to this or another MimerParameterCollection.
Remarks
AddWithValue replaces MimerParameterCollection.Add(string, object). The overload of Add that takes a string and an object 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 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