VistaDB 6
VistaDB.Provider Namespace / VistaDBCommand Class
Members Example


In This Topic
    VistaDBCommand Class
    In This Topic
    Represents a SQL statement to execute against a VistaDB database. This class cannot be inherited.
    Syntax
    'Declaration
     
    
    <System.ComponentModel.DesignerCategoryAttribute("Component")>
    Public NotInheritable Class VistaDBCommand 
       Inherits System.Data.Common.DbCommand
    'Usage
     
    
    Dim instance As VistaDBCommand
    [System.ComponentModel.DesignerCategory("Component")]
    public sealed class VistaDBCommand : System.Data.Common.DbCommand 
    Example
    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;
    }
    Inheritance Hierarchy

    System.Object
       System.MarshalByRefObject
          System.ComponentModel.Component
             System.Data.Common.DbCommand
                VistaDB.Provider.VistaDBCommand

    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