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

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SAParameter class » SAParameter constructors


SAParameter(String, SADbType, Int32, ParameterDirection, Boolean, Byte, Byte, String, DataRowVersion, Object) constructor

Initializes an SAParameter object with the specified parameter name, data type, length, direction, nullability, numeric precision, numeric scale, source column, source version, and value.

Visual Basic

Public Sub New( _
   ByVal parameterName As String, _
   ByVal dbType As SADbType, _
   ByVal size As Integer, _
   ByVal direction As ParameterDirection, _
   ByVal isNullable As Boolean, _
   ByVal precision As Byte, _
   ByVal scale As Byte, _
   ByVal sourceColumn As String, _
   ByVal sourceVersion As DataRowVersion, _
   ByVal value As Object _

public  SAParameter(
   string  parameterName,
   SADbType dbType,
   int size,
   ParameterDirection direction,
   bool isNullable,
   byte precision,
   byte scale,
   string  sourceColumn,
   DataRowVersion sourceVersion,
   object value
  • parameterName   The name of the parameter.

  • dbType   One of the SADbType values

  • size   The length of the parameter.

  • direction   One of the ParameterDirection values.

  • isNullable   True if the value of the field can be null; otherwise, false.

  • precision   The total number of digits to the left and right of the decimal point to which Value is resolved.

  • scale   The total number of decimal places to which Value is resolved.

  • sourceColumn   The name of the source column to map.

  • sourceVersion   One of the DataRowVersion values.

  • value   An Object that is the value of the parameter.

See also