Partager via


BEGIN_ACCESSOR

 

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 BEGIN_ACCESSOR.

Marks the beginning of an accessor entry.

Syntax

  
BEGIN_ACCESSOR(  
num  
,   
bAuto  
 )  
  

Parameters

num
[in] The zero-offset number for the accessor in this accessor map.

bAuto
[in] Specifies if this accessor is an auto accessor or a manual accessor. If true, the accessor is auto; if false, the accessor is manual. An auto accessor means data is fetched for you on move operations.

Remarks

In the case of multiple accessors on a rowset, you need to specify BEGIN_ACCESSOR_MAP and use the BEGIN_ACCESSOR macro for each individual accessor. The BEGIN_ACCESSOR macro is completed with the END_ACCESSOR macro. The BEGIN_ACCESSOR_MAP macro is completed with the END_ACCESSOR_MAP macro.

Example

See BEGIN_ACCESSOR_MAP.

Requirements

Header: atldbcli.h

See Also

Macros and Global Functions for OLE DB Consumer Templates
BEGIN_ACCESSOR_MAP
END_ACCESSOR
END_ACCESSOR_MAP