Partager via


CDaoQueryDef::GetParameterInfo

void GetParameterInfo( int nIndex**, CDaoParameterInfo&** paraminfo**, DWORD** dwInfoOptions = AFX_DAO_PRIMARY_INFO);
throw( CDaoException, CMemoryException );

void GetParameterInfo( LPCTSTR lpszName**, CDaoParameterInfo&** paraminfo**, DWORD** dwInfoOptions = AFX_DAO_PRIMARY_INFO );
throw( CDaoException, CMemoryException );

Parameters

nIndex

The zero-based index of the desired parameter in the querydef’s Parameters collection, for lookup by index.

paraminfo

A reference to a CDaoParameterInfo object that returns the information requested.

dwInfoOptions

Options that specify which information about the parameter to retrieve. The available option is listed here along with what it causes the function to return:

  • AFX_DAO_PRIMARY_INFO   (Default) Name, Type

lpszName

A string containing the name of the desired parameter, for lookup by name. You can use a CString.

Remarks

Call this member function to obtain information about a parameter defined in the querydef. For a description of the information returned in paraminfo, see the CDaoParameterInfo structure. This structure has members that correspond to the descriptive information under dwInfoOptions above.

For more information about obtaining parameter information, see the article . For more information about parameterizing queries, see the article . Both articles are in Visual C++ Programmer's Guide. For related information, see the topic "PARAMETERS Declaration (SQL)" in DAO Help.

CDaoQueryDef OverviewClass MembersHierarchy Chart

See Also   CDaoQueryDef::GetParameterCount