VistaDB 5






VistaDB.Provider Namespace > VistaDBParameter Class > VistaDBParameter Constructor : VistaDBParameter Constructor(String,VistaDBType,Int32,ParameterDirection,Boolean,String,DataRowVersion,Object)
The name of the parameter to map.
One of the VistaDBType values.
The length of the parameter.
One of the ParameterDirection values.
true if the value of the field can be null; otherwise false.
The name of the source column.
One of the DataRowVersion values.
An Object that is the value of the SqlParameter.
VistaDBParameter Constructor(String,VistaDBType,Int32,ParameterDirection,Boolean,String,DataRowVersion,Object)
Initializes a new instance of the VistaDBParameter class that uses the parameter name, the type of the parameter, the size of the parameter, a ParameterDirection, the source column, a DataRowVersion to use, and the value of the parameter.
Syntax
'Declaration
 
Public Function New( _
   ByVal parameterName As System.String, _
   ByVal dataType As VistaDBType, _
   ByVal size As System.Integer, _
   ByVal direction As System.Data.ParameterDirection, _
   ByVal isNullable As System.Boolean, _
   ByVal sourceColumn As System.String, _
   ByVal sourceVersion As System.Data.DataRowVersion, _
   ByVal value As System.Object _
)
'Usage
 
Dim parameterName As System.String
Dim dataType As VistaDBType
Dim size As System.Integer
Dim direction As System.Data.ParameterDirection
Dim isNullable As System.Boolean
Dim sourceColumn As System.String
Dim sourceVersion As System.Data.DataRowVersion
Dim value As System.Object
 
Dim instance As New VistaDBParameter(parameterName, dataType, size, direction, isNullable, sourceColumn, sourceVersion, value)
public VistaDBParameter( 
   System.string parameterName,
   VistaDBType dataType,
   System.int size,
   System.Data.ParameterDirection direction,
   System.bool isNullable,
   System.string sourceColumn,
   System.Data.DataRowVersion sourceVersion,
   System.object value
)
public VistaDBParameter( 
    parameterName: System.String;
    dataType: VistaDBType;
    size: System.Integer;
    direction: System.Data.ParameterDirection;
    isNullable: System.Boolean;
    sourceColumn: System.String;
    sourceVersion: System.Data.DataRowVersion;
    value: System.TObject
); 
public function VistaDBParameter( 
   parameterName : System.String,
   dataType : VistaDBType,
   size : System.int,
   direction : System.Data.ParameterDirection,
   isNullable : System.boolean,
   sourceColumn : System.String,
   sourceVersion : System.Data.DataRowVersion,
   value : System.Object
);
public: VistaDBParameter( 
   System.string* parameterName,
   VistaDBType dataType,
   System.int size,
   System.Data.ParameterDirection direction,
   System.bool isNullable,
   System.string* sourceColumn,
   System.Data.DataRowVersion sourceVersion,
   System.Object* value
)
public:
VistaDBParameter( 
   System.String^ parameterName,
   VistaDBType dataType,
   System.int size,
   System.Data.ParameterDirection direction,
   System.bool isNullable,
   System.String^ sourceColumn,
   System.Data.DataRowVersion sourceVersion,
   System.Object^ value
)

Parameters

parameterName
The name of the parameter to map.
dataType
One of the VistaDBType 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.
sourceColumn
The name of the source column.
sourceVersion
One of the DataRowVersion values.
value
An Object that is the value of the SqlParameter.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also