VistaDB 5






VistaDB.Provider Namespace > VistaDBParameterCollection Class > Add Method : Add(String,VistaDBType,Int32,String) Method
The name of the parameter.
One of the VistaDBType values.
The size as an Int32.
The name of the source column.
Add(String,VistaDBType,Int32,String) Method
Adds a VistaDBParameter to the VistaDBParameterCollection with the parameter name, the data type, and the column length.
Syntax
'Declaration
 
Public Overloads Function Add( _
   ByVal parameterName As System.String, _
   ByVal dataType As VistaDBType, _
   ByVal size As System.Integer, _
   ByVal sourceColumn As System.String _
) As VistaDBParameter
'Usage
 
Dim instance As VistaDBParameterCollection
Dim parameterName As System.String
Dim dataType As VistaDBType
Dim size As System.Integer
Dim sourceColumn As System.String
Dim value As VistaDBParameter
 
value = instance.Add(parameterName, dataType, size, sourceColumn)
public VistaDBParameter Add( 
   System.string parameterName,
   VistaDBType dataType,
   System.int size,
   System.string sourceColumn
)
public function Add( 
    parameterName: System.String;
    dataType: VistaDBType;
    size: System.Integer;
    sourceColumn: System.String
): VistaDBParameter; 
public function Add( 
   parameterName : System.String,
   dataType : VistaDBType,
   size : System.int,
   sourceColumn : System.String
) : VistaDBParameter;
public: VistaDBParameter* Add( 
   System.string* parameterName,
   VistaDBType dataType,
   System.int size,
   System.string* sourceColumn
) 
public:
VistaDBParameter^ Add( 
   System.String^ parameterName,
   VistaDBType dataType,
   System.int size,
   System.String^ sourceColumn
) 

Parameters

parameterName
The name of the parameter.
dataType
One of the VistaDBType values.
size
The size as an Int32.
sourceColumn
The name of the source column.

Return Value

The new VistaDBParameter object.
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