Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 3.82 KB

File metadata and controls

68 lines (54 loc) · 3.82 KB
title CDynamicParameterAccessor Class | Microsoft Docs
ms.custom
ms.date 02/14/2018
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic reference
f1_keywords
ATL.CDynamicParameterAccessor
ATL::CDynamicParameterAccessor
CDynamicParameterAccessor
dev_langs
C++
helpviewer_keywords
CDynamicParameterAccessor class
ms.assetid 5f22626e-e80d-491f-8b3b-cedc50331960
caps.latest.revision 13
author mikeblome
ms.author mblome
manager ghogen
ms.workload
cplusplus
data-storage

CDynamicParameterAccessor Class

Similar to CDynamicAccessor but obtains parameter information to be set by calling the ICommandWithParameters interface.

Syntax

class CDynamicParameterAccessor : public CDynamicAccessor

Members

Methods

CDynamicParameterAccessor The constructor.
GetParam Retrieves the parameter data from the buffer.
GetParamCount Retrieves the number of parameters in the accessor.
GetParamIO Determines whether the specified parameter is an input or output parameter.
GetParamLength Retrieves the length of the specified parameter stored in the buffer.
GetParamName Retrieves the name of a specified parameter.
GetParamStatus Retrieves the status of the specified parameter stored in the buffer.
GetParamString Retrieves the string data of the specified parameter stored in the buffer.
GetParamType Retrieves the data type of a specified parameter.
SetParam Sets the buffer using the parameter data.
SetParamLength Sets the length of the specified parameter stored in the buffer.
SetParamStatus Sets the status of the specified parameter stored in the buffer.
SetParamString Sets the string data of the specified parameter stored in the buffer.

Remarks

The provider must support ICommandWithParameters for the consumer to use this class.

The parameter information is stored in a buffer created and managed by this class. Obtain parameter data from the buffer by using GetParam and GetParamType.

For an example demonstrating how to use this class to execute a SQL Server stored procedure and get the output parameter values, see the DynamicConsumer sample code in the Microsoft VCSamples repository on GitHub.

Requirements

Header: atldbcli.h

See also

OLE DB Consumer Templates
OLE DB Consumer Templates Reference
CAccessor Class
CDynamicAccessor Class
CManualAccessor Class