次の方法で共有


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.

Syntax

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

OLE DB Provider Templates
OLE DB Provider Template Architecture