Add(String, Object) method

Adds an SAParameter object to this collection, created using the specified parameter name and value, to the collection.

Syntax
Visual Basic

Public Function Add( _
   ByVal parameterName As String, _
   ByVal value As Object _
) As SAParameter
C#

public SAParameter Add(
   string  parameterName,
   object value
);
Parameters
  • parameterName   The name of the parameter.

  • value   The value of the parameter to add to the connection.

Return value

The new SAParameter object.

Remarks

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.

See also