Add Method (String, Object)

MySQL Connector.Net

Collapse image Expand Image Copy image CopyHover image
Adds a MySqlParameter to the MySqlParameterCollection given the specified parameter name and value.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.8.4.0

Syntax

C#
[ObsoleteAttribute("Add(String parameterName, Object value) has been deprecated.  Use AddWithValue(String parameterName, Object value)")]
public MySqlParameter Add(
	string parameterName,
	Object value
)
Visual Basic
<ObsoleteAttribute("Add(String parameterName, Object value) has been deprecated.  Use AddWithValue(String parameterName, Object value)")> _
Public Function Add ( _
	parameterName As String, _
	value As Object _
) As MySqlParameter
Visual C++
public:
[ObsoleteAttribute(L"Add(String parameterName, Object value) has been deprecated.  Use AddWithValue(String parameterName, Object value)")]
MySqlParameter^ Add(
	String^ parameterName, 
	Object^ value
)

Parameters

parameterName
Type: System..::..String
The name of the parameter.
value
Type: System..::..Object
The Value of the MySqlParameter to add to the collection.

Return Value

The newly added MySqlParameter object.

See Also