Adds an SAParameter object to this collection, created using the specified parameter name and value, to the collection.
Visual Basic
Public Function Add( _
ByVal parameterName As String, _
ByVal value As Object _
) As SAParameter
C#
public SAParameter Add(
string parameterName,
object value
);
parameterName The name of the parameter.
value The value of the parameter to add to the connection.
The new SAParameter object.
Because of the special treatment of the 0 and 0.0 constants and the way overloaded methods are resolved, it is highly recommended that you explicitly cast constant values to type object when using this method.