Skip to content

Latest commit

 

History

History
91 lines (59 loc) · 2.64 KB

File metadata and controls

91 lines (59 loc) · 2.64 KB
title ICommandTextImpl Class
ms.date 11/04/2016
f1_keywords
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
helpviewer_keywords
ICommandText class
GetCommandText method
m_strCommandText
SetCommandText method
ms.assetid 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

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

Data Members

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