description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CAccessorBase Class |
CAccessorBase Class |
11/04/2016 |
|
|
389b65be-11ca-4ae0-9290-60c621c4982b |
All accessors in the OLE DB Templates derive from this class. CAccessorBase
allows one rowset to manage multiple accessors. It also provides binding for both parameters and output columns.
// Replace with syntax
Name | Description |
---|---|
Close | Closes the accessors. |
GetHAccessor | Retrieves the accessor handle. |
GetNumAccessors | Retrieves the number of accessors created by the class. |
IsAutoAccessor | Tests whether the specified accessor is an autoaccessor. |
ReleaseAccessors | Releases the accessors. |
Header: atldbcli.h
Closes the accessors.
void Close();
You must call ReleaseAccessors first.
Retrieves the accessor handle of a specified accessor.
HACCESSOR GetHAccessor(ULONG nAccessor) const;
nAccessor
[in] The zero-offset number for the accessor.
The accessor handle.
Retrieves the number of accessors created by the class.
ULONG GetNumAccessors() const;
The number of accessors created by the class.
Returns true if data is automatically retrieved for the accessor during a Move operation.
bool IsAutoAccessor(ULONG nAccessor) const;
nAccessor
[in] The zero-offset number for the accessor.
Returns true
if the accessor is an autoaccessor. Otherwise, it returns false
.
Releases the accessors created by the class.
HRESULT ReleaseAccessors(IUnknown* pUnk);
pUnk
[in] A pointer to an IUnknown
interface for the COM object for which the accessors have been created.
A standard HRESULT.
Called from CAccessorRowset::Close.
OLE DB Consumer Templates
OLE DB Consumer Templates Reference
CAccessorBase Class