description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn more about: CBookmark Class |
CBookmark Class |
11/04/2016 |
|
|
bc942f95-6f93-41d9-bb6e-bcdae4ae0b7a |
Holds a bookmark value in its buffer.
template < DBLENGTH nSize = 0 >
class CBookmark : public CBookmarkBase
template <>
class CBookmark< 0 > : public CBookmarkBase
nSize
The size of the bookmark buffer in bytes. When nSize is zero, the bookmark buffer will be dynamically created at run time.
Header: atldbcli.h
Name | Description |
---|---|
CBookmark | The constructor |
GetBuffer | Retrieves the pointer to the buffer. |
GetSize | Retrieves the size of the buffer in bytes. |
SetBookmark | Sets the bookmark value. |
Name | Description |
---|---|
operator = | Assigns one CBookmark class to another. |
CBookmark<0>
is a template specialization of CBookmark
; its buffer is dynamically created at run time.
The constructor.
CBookmark();
CBookmark(DBLENGTH nSize);
nSize
[in] Size of the bookmark buffer in bytes.
The first function sets the buffer to NULL and the buffer size to 0. The second function sets the buffer size to nSize, and the buffer to a byte array of nSize bytes.
Note
This function is only available in CBookmark<0>
.
Retrieves the pointer to the bookmark buffer.
virtual BYTE* GetBuffer() const throw();
A pointer to the bookmark buffer.
Retrieves the size of the bookmark buffer.
virtual DBLENGTH GetSize() const throw();
The size of the buffer in bytes.
Copies the bookmark value referenced by pBuffer to the CBookmark
buffer and sets the buffer size to nSize.
HRESULT SetBookmark(DBLENGTH nSize, BYTE* pBuffer) throw();
nSize
[in] The size of the bookmark buffer.
pBuffer
[in] A pointer to the byte array containing the bookmark value.
A standard HRESULT.
This function is only available in CBookmark<0>
.
Assigns a CBookmark
object to another.
CBookmark& operator =(const CBookmark& bookmark) throw();
This operator is needed only in CBookmark<0>
.
OLE DB Consumer Templates
OLE DB Consumer Templates Reference