Share via


CRowsetImpl::GetCommandFromID

 

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 CRowsetImpl::GetCommandFromID.

Checks to see if either or both parameters contain string values, and if so, copies the string values to the data members m_strCommandText and m_strIndexText.

Syntax

  
      HRESULT CRowsetBaseImpl::GetCommandFromID(  
   DBID* pTableID,  
   DBID* pIndexID   
);  

Parameters

pTableID
[in] A pointer to the DBID representing the Table ID.

pIndexID
[in] A pointer to the DBID representing the Index ID.

Return Value

A standard HRESULT.

Remarks

This method is called through a static upcast by CRowsetImpl to populate the data members m_strCommandText and m_strIndexText. By default, this method checks to see if either or both parameters contain string values. If they contain string values, this method copies the string values to the data members. By placing a method with this signature in your CRowsetImpl-derived class, your method will be called instead of the base implementation.

Requirements

Header: atldb.h

See Also

CRowsetImpl Class
CRowsetImpl::SetCommandText