Share via


CDynamicParameterAccessor::GetParamIO

 

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 CDynamicParameterAccessor::GetParamIO.

Determines whether the specified parameter is an input or output parameter.

Syntax

  
      bool GetParamIO(   
   DBORDINAL nParam,   
   DBPARAMIO * pParamIO    
) const throw( );  

Parameters

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.

pParamIO
A pointer to the variable containing the DBPARAMIO type (input or output) of the specified parameter. It is defined as follows:

typedef DWORD DBPARAMIO;

enum DBPARAMIOENUM

{ DBPARAMIO_NOTPARAM = 0,

DBPARAMIO_INPUT = 0x1,

DBPARAMIO_OUTPUT = 0x2

};

Return Value

Returns true on success or false on failure.

Requirements

Header: atldbcli.h

See Also

CDynamicParameterAccessor Class