Add Method (String, Object)
From MySQL Connector/Net
| MySQL Connector/Net |
| MySqlParameterCollection..::.Add Method (String, Object) |
| MySqlParameterCollection Class See Also Send Feedback |
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.2.2.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 (Declaration) |
|---|
<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++ |
|---|
[ObsoleteAttribute(L"Add(String parameterName, Object value) has been deprecated. Use AddWithValue(String parameterName, Object value)")] public: 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.