ICommandImpl Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at 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.

Methods

CancelExecutionCancels the current command execution.
CancelCancels the current command execution.
CreateRowsetCreates a rowset object.
ExecuteExecutes the command.
GetDBSessionReturns an interface pointer to the session that created the command.
ICommandImplThe constructor.

Data Members

m_bCancelIndicates whether the command is to be canceled.
m_bCancelWhenExecutingIndicates whether the command is to be canceled when executing.
m_bIsExecutingIndicates whether the command is currently executing.

A mandatory interface on the command object.

Header: atldb.h

OLE DB Provider Templates
OLE DB Provider Template Architecture

Show: