VistaDB 6
VistaDB.Provider Namespace / VistaDBCommandBuilder Class / InitializeCommand Method
The System.Data.Common.DbCommand to be used by the command builder for the corresponding insert, update, or delete command.


In This Topic
    InitializeCommand Method
    In This Topic
    Resets the System.Data.Common.DbCommand.CommandTimeout, System.Data.Common.DbCommand.Transaction, System.Data.Common.DbCommand.CommandType, and System.Data.UpdateRowSource properties on the System.Data.Common.DbCommand.
    Syntax
    'Declaration
     
    
    Protected Function InitializeCommand( _
       ByVal command As System.Data.Common.DbCommand _
    ) As System.Data.Common.DbCommand
    'Usage
     
    
    Dim instance As VistaDBCommandBuilder
    Dim command As System.Data.Common.DbCommand
    Dim value As System.Data.Common.DbCommand
     
    value = instance.InitializeCommand(command)
    protected System.Data.Common.DbCommand InitializeCommand( 
       System.Data.Common.DbCommand command
    )

    Parameters

    command
    The System.Data.Common.DbCommand to be used by the command builder for the corresponding insert, update, or delete command.

    Return Value

    A System.Data.Common.DbCommand instance to use for each insert, update, or delete operation. Passing a null value allows the System.Data.Common.DbCommandBuilder.InitializeCommand(System.Data.Common.DbCommand) method to create a System.Data.Common.DbCommand object based on the Select command associated with the System.Data.Common.DbCommandBuilder.
    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