Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API Reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SAParameterCollection class » Add methods


Add(String, Object) method

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

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

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

Return value

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.

See also