VistaDB 5

Connection Property (VistaDBCommand)
Gets or sets the VistaDBConnection used by this VistaDBCommand.
Public Shadows Property Connection As VistaDBConnection
Dim instance As VistaDBCommand
Dim value As VistaDBConnection
instance.Connection = value
value = instance.Connection
public new VistaDBConnection Connection {get; set;}
public read-write property Connection: VistaDBConnection; 
public hide function get,set Connection : VistaDBConnection
public: __property new VistaDBConnection* get_Connection();
public: __property new void set_Connection( 
   VistaDBConnection* value
new property VistaDBConnection^ Connection {
   VistaDBConnection^ get();
   void set (    VistaDBConnection^ value);
The following example creates a new command object and associates it with a given VistaDBConnection object
public VistaDBCommand CreateCommand(VistaDBConnection connection)
	VistaDBCommand command = new VistaDBCommand();
	command.Connection = connection;
	command.CommandText = "select * from customers";
	return command;

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