VistaDB 6
VistaDB.Provider Namespace / VistaDBCommand Class / Parameters Property
Example


In This Topic
    Parameters Property
    In This Topic
    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;}
    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