VistaDB 5
Example 






Parameters Property
Gets the collection of VistaDBParameter objects.
Syntax
'Declaration
 
Public Shadows ReadOnly Property Parameters As VistaDBParameterCollection
'Usage
 
Dim instance As VistaDBCommand
Dim value As VistaDBParameterCollection
 
value = instance.Parameters
public new VistaDBParameterCollection Parameters {get;}
public read-only property Parameters: VistaDBParameterCollection; 
public hide function get Parameters : VistaDBParameterCollection
public: __property new VistaDBParameterCollection* get_Parameters();
public:
new property VistaDBParameterCollection^ Parameters {
   VistaDBParameterCollection^ get();
}
Example
The following example insert new row with using parameters
public void InsertRow(VistaDBConnection connection, long id_Customer)
{
	VistaDBCommand command = new VistaDBCommand();
	command.Connection = connection;
	command.CommandText = "INSERT INTO Orders (ID_Customer) VALUES (@ID_Customer)";
	command.Parameters.Add("@ID_Customer", id_Customer);
	command.ExecuteNonQuery();
}
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