Edit

Share via


ICommandTextImpl Class

Provides an implementation for the ICommandText interface.

Syntax

template <class T >
class ATL_NO_VTABLE ICommandTextImpl
   : public ICommandImpl<T, ICommandText>

Parameters

T
The command class derived from ICommandTextImpl.

Requirements

Header: altdb.h

Members

Interface Methods

Name Description
GetCommandText Returns the text command set by the last call to SetCommandText.
SetCommandText Sets the command text, replacing the existing command text.

Data Members

Name Description
m_strCommandText Stores the command text.

Remarks

A mandatory interface on commands.

ICommandTextImpl::GetCommandText

Returns the text command set by the last call to SetCommandText.

Syntax

STDMETHOD(GetCommandText)(GUID * pguidDialect,
   LPOLESTR * ppwszCommand);

Parameters

See ICommandText::GetCommandText in the OLE DB Programmer's Reference. The pguidDialect parameter is ignored by default.

ICommandTextImpl::SetCommandText

Sets the command text, replacing the existing command text.

Syntax

STDMETHOD(SetCommandText)(REFGUID rguidDialect,
   LPCOLESTR pwszCommand);

Parameters

See ICommandText::SetCommandText in the OLE DB Programmer's Reference.

ICommandTextImpl::m_strCommandText

Stores the command text string.

Syntax

CComBSTR m_strCommandText;

See also

OLE DB Provider Templates
OLE DB Provider Template Architecture