Skip to content

Latest commit

 

History

History
92 lines (60 loc) · 2.68 KB

icommandtextimpl-class.md

File metadata and controls

92 lines (60 loc) · 2.68 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: ICommandTextImpl Class
ICommandTextImpl Class
11/04/2016
ICommandText
GetCommandText
ICommandTextImpl.GetCommandText
ICommandTextImpl::GetCommandText
ATL::ICommandTextImpl::m_strCommandText
ICommandTextImpl<T>::m_strCommandText
m_strCommandText
ICommandTextImpl.m_strCommandText
ICommandTextImpl::m_strCommandText
ATL::ICommandTextImpl<T>::m_strCommandText
ATL.ICommandTextImpl.m_strCommandText
ICommandTextImpl.SetCommandText
ICommandTextImpl::SetCommandText
SetCommandText
ICommandText class
GetCommandText method
m_strCommandText
SetCommandText method
9c2715cc-1e55-4468-8327-85341617ed46

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