Share via


ICommandImpl Class

Provides implementation for the ICommand interface.

template <class T, class CommandBase = ICommand> 
class ATL_NO_VTABLE ICommandImpl : public CommandBase

Parameters

  • T
    Your class, derived from ICommandImpl.

  • CommandBase
    A command interface. The default is ICommand.

Members

Methods

CancelExecution

Cancels the current command execution.

Cancel

Cancels the current command execution.

CreateRowset

Creates a rowset object.

Execute

Executes the command.

GetDBSession

Returns an interface pointer to the session that created the command.

ICommandImpl

The constructor.

Data Members

m_bCancel

Indicates whether the command is to be canceled.

m_bCancelWhenExecuting

Indicates whether the command is to be canceled when executing.

m_bIsExecuting

Indicates whether the command is currently executing.

Remarks

A mandatory interface on the command object.

Requirements

Header: atldb.h

See Also

Concepts

OLE DB Provider Templates (C++)

OLE DB Provider Template Architecture