Skip to content

Latest commit

 

History

History
88 lines (77 loc) · 2.43 KB

File metadata and controls

88 lines (77 loc) · 2.43 KB
title CDynamicParameterAccessor::GetParam | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
CDynamicParameterAccessor::GetParam
ATL.CDynamicParameterAccessor.GetParam
CDynamicParameterAccessor::GetParam<ctype>
CDynamicParameterAccessor.GetParam
GetParam
ATL::CDynamicParameterAccessor::GetParam<ctype>
ATL::CDynamicParameterAccessor::GetParam
dev_langs
C++
helpviewer_keywords
GetParam method
ms.assetid 893a6bf8-7b55-4f6d-8a10-a43b13be7f56
caps.latest.revision 8
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CDynamicParameterAccessor::GetParam

Retrieves the nonstring data for a specified parameter from the parameter buffer.

Syntax

  
      template < class ctype > bool GetParam(   
   DBORDINAL nParam,   
   ctype* pData    
) const throw( );  
template < class ctype > bool GetParam(   
   TCHAR* pParamName,   
   ctype* pData    
) const throw( );  
void* GetParam(   
   DBORDINAL nParam    
) const throw( );  
void* GetParam(   
   TCHAR* pParamName    
) const throw( );  

Parameters

ctype
A templated parameter that is the data type.

nParam
[in] The parameter number (offset from 1). Parameter 0 is reserved for return values. The parameter number is the index of the parameter based on its order in the SQL or stored procedure call. See SetParam for an example.

pParamName
[in] The parameter name.

pData
[out] The pointer to the memory containing the data retrieved from the buffer.

Return Value

For nontemplated versions, points to the memory containing the data retrieved from the buffer. For templated versions, returns true on success or false on failure.

Use GetParam to retrieve nonstring parameter data from the buffer. Use GetParamString to retrieve string parameter data from the buffer.

Requirements

Header: atldbcli.h

See Also

CDynamicParameterAccessor Class