SET_PARAM_TYPE( type )
Parameters
type
[in] The type to set for the parameter.
Remarks
Specifies COLUMN_ENTRY macros that follow the SET_PARAM_TYPE macro input, output, or input/output. Providers support only parameter I/O types that are supported by the underlying data source. The type is a combination of one or more DBPARAMIOENUM values:
Macros for OLE DB Consumer Templates
Example
class CGetProperty
{
public:
LONG m_nReturn
LONG m_nAge;
TCHAR m_name[31];
TCHAR m_property[65];
BEGIN_PARAM_MAP(CGetProperty)
SET_PARAM_TYPE(DBPARAMIO_OUTPUT)
COLUMN_ENTRY(1, m_nReturn)
SET_PARAM_TYPE(DBPARAMIO_INPUT)
COLUMN_ENTRY(2, m_nAge)
END_PARAM_MAP()
BEGIN_COLUMN_MAP(CGetProperty)
COLUMN_ENTRY(1, m_name)
COLUMN_ENTRY(2, m_property)
END_COLUMN_MAP()
};