Contents Index AsaParameterCollection class Clear method

ASA Programming Guide
  Adaptive Server Anywhere .NET Data Provider API Reference
    AsaParameterCollection class

Add method


Description 

Adds an AsaParameter to the AsaCommand.

Syntax 1 

int Add( object value )

Syntax 2 

int Add( AsaParameter value )

Syntax 3 

int Add(
string parameterName,
object value
)

Syntax 4 

int Add(
string parameterName,
AsaDbType asaDbType
)

Syntax 5 

int Add(
string parameterName,
AsaDbType asaDbType,
int size
)

Syntax 6 

int Add(
string parameterName,
AsaDbType asaDbType,
int size,
string sourceColumn
)

Parameters 

value    For syntax 1 and 2, value is the AsaParameter object to add to the collection. For syntax 3, value is the value of the parameter to add to the connection.

parameterName    The name of the parameter.

asaDbType    One of the AsaDbType values.

size    The length of the column.

sourceColumn    The name of the source column.

Return Value 

The index of the new AsaParameter object.


Contents Index AsaParameterCollection class Clear method