다음을 통해 공유


CAccessor 클래스

Represents one of the accessor types.

template < class T > 
class CAccessor : public CAccessorBase, public T

매개 변수

  • T
    The user record class.

설명

It is used when a record is statically bound to a data source. The record contains the buffer. This class supports multiple accessors on a rowset.

Use this accessor type when you know the structure and the type of the database.

If your accessor contains fields that point to memory (such as a BSTR or interface) that must be freed, call the member function CAccessorRowset::FreeRecordMemory before the next record is read.

요구 사항

Header: atldbcli.h

참고 항목

개념

OLE DB 소비자 템플릿(C++)

OLE DB 소비자 템플릿 참조