Advanced.Data.Provider Documentation

AdpCommand.CreateParameter Method (String, DbType, Int32, ParameterDirection, Byte, Byte, String, DataRowVersion, Object)

[This is preliminary documentation and subject to change.]

Creates a new instance of a AdpParameter object.

[Visual Basic]
Overloads Public Function CreateParameter( _
   ByVal parameterName As String, _
   ByVal dbType As DbType, _
   ByVal size As Integer, _
   ByVal direction As ParameterDirection, _
   ByVal precision As Byte, _
   ByVal scale As Byte, _
   ByVal sourceColumn As String, _
   ByVal sourceVersion As DataRowVersion, _
   ByVal value As Object _
) As AdpParameter
[C#]
public AdpParameter CreateParameter(
   string parameterName,
   DbType dbType,
   int size,
   ParameterDirection direction,
   byte precision,
   byte scale,
   string sourceColumn,
   DataRowVersion sourceVersion,
   object value
);

Parameters

parameterName
The name of the AdpParameter.
dbType
The data type of the AdpParameter.
size
The maximum size, in bytes, of the data within the column.
direction
Indicating whether the parameter is input-only, output-only, bidirectional, or a stored procedure return value parameter.
precision
The maximum number of digits used to represent the Value property.
scale
The number of decimal places to which Value is resolved.
sourceColumn
The name of the source column that is mapped to the DataSet and used for loading or returning the Value.
sourceVersion
The DataRowVersion to use when loading Value.
value
The value of the AdpParameter.

Return Value

A AdpParameter object.

See Also

AdpCommand Class | Advanced.Data.Provider Namespace | AdpCommand.CreateParameter Overload List