Skip to content

Commit 30135a4

Browse files
author
mtx48109
committed
consolidation oledb pr2
1 parent b23a645 commit 30135a4

10 files changed

+118
-225
lines changed

.openpublishing.redirection.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,41 @@
385385
"redirect_url": "/cpp/data/oledb/caccessorbase-class#release",
386386
"redirect_document_id": false
387387
},
388+
{
389+
"source_path": "docs/data/oledb/caccessorrowset-members.md",
390+
"redirect_url": "/cpp/data/oledb/caccessorrowset-class",
391+
"redirect_document_id": false
392+
},
393+
{
394+
"source_path": "docs/data/oledb/caccessorrowset-methods.md",
395+
"redirect_url": "/cpp/data/oledb/caccessorrowset-class",
396+
"redirect_document_id": false
397+
},
398+
{
399+
"source_path": "docs/data/oledb/caccessorrowset-bind.md",
400+
"redirect_url": "/cpp/data/oledb/caccessorrowset-class#bind",
401+
"redirect_document_id": false
402+
},
403+
{
404+
"source_path": "docs/data/oledb/caccessorrowset-caccessorrowset.md",
405+
"redirect_url": "/cpp/data/oledb/caccessorrowset-class#caccessorrowset",
406+
"redirect_document_id": false
407+
},
408+
{
409+
"source_path": "docs/data/oledb/caccessorrowset-close.md",
410+
"redirect_url": "/cpp/data/oledb/caccessorrowset-class#close",
411+
"redirect_document_id": false
412+
},
413+
{
414+
"source_path": "docs/data/oledb/caccessorrowset-freerecordmemory.md",
415+
"redirect_url": "/cpp/data/oledb/caccessorrowset-class#freerecordmemory",
416+
"redirect_document_id": false
417+
},
418+
{
419+
"source_path": "docs/data/oledb/caccessorrowset-getcolumninfo.md",
420+
"redirect_url": "/cpp/data/oledb/caccessorrowset-class#getcolumninfo",
421+
"redirect_document_id": false
422+
},
388423
{
389424
"source_path": "docs/dotnet/index.md",
390425
"redirect_url": "/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp",

docs/data/oledb/TOC.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,6 @@
9494
### [CAccessor Class](caccessor-class.md)
9595
### [CAccessorBase Class](caccessorbase-class.md)
9696
### [CAccessorRowset Class](caccessorrowset-class.md)
97-
#### [CAccessorRowset Members](caccessorrowset-members.md)
98-
#### [CAccessorRowset Methods](caccessorrowset-methods.md)
99-
#### [CAccessorRowset::Bind](caccessorrowset-bind.md)
100-
#### [CAccessorRowset::CAccessorRowset](caccessorrowset-caccessorrowset.md)
101-
#### [CAccessorRowset::Close](caccessorrowset-close.md)
102-
#### [CAccessorRowset::FreeRecordMemory](caccessorrowset-freerecordmemory.md)
103-
#### [CAccessorRowset::GetColumnInfo](caccessorrowset-getcolumninfo.md)
10497
### [CArrayRowset Class](carrayrowset-class.md)
10598
#### [CArrayRowset::CArrayRowset](carrayrowset-carrayrowset.md)
10699
#### [CArrayRowset::m_nRowsRead](carrayrowset-m-nrowsread.md)

docs/data/oledb/caccessorrowset-bind.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

docs/data/oledb/caccessorrowset-caccessorrowset.md

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/data/oledb/caccessorrowset-class.md

Lines changed: 83 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,13 @@ ms.custom: ""
44
ms.date: "11/04/2016"
55
ms.technology: ["cpp-data"]
66
ms.topic: "reference"
7-
f1_keywords: ["CAccessorRowset", "ATL.CAccessorRowset", "ATL::CAccessorRowset"]
7+
f1_keywords: ["CAccessorRowset", "ATL.CAccessorRowset", "ATL::CAccessorRowset", "CAccessorRowset.Bind", "CAccessorRowset::Bind",
8+
"CAccessorRowset::CAccessorRowset", "CAccessorRowset.CAccessorRowset", "CAccessorRowset", "ATL.CAccessorRowset.CAccessorRowset", "ATL::CAccessorRowset::CAccessorRowset",
9+
"CAccessorRowset.Close", "CAccessorRowset::Close", "CAccessorRowset::FreeRecordMemory", "CAccessorRowset.FreeRecordMemory", "FreeRecordMemory",
10+
"GetColumnInfo", "CAccessorRowset.GetColumnInfo", "CAccessorRowset::GetColumnInfo"]
811
dev_langs: ["C++"]
9-
helpviewer_keywords: ["CAccessorRowset class"]
12+
helpviewer_keywords: ["CAccessorRowset class", "CAccessorRowset class, methods", "CAccessorRowset class, members", "Bind method", "CAccessorRowset class, constructor",
13+
"Close method", "FreeRecordMemory method", "GetColumnInfo method"]
1014
ms.assetid: bd4f58ed-cebf-4d43-8985-1e5fcbf06953
1115
author: "mikeblome"
1216
ms.author: "mblome"
@@ -23,30 +27,101 @@ template <class TAccessor = CNoAccessor,
2327
class CAccessorRowset : public TAccessor, public TRowset<TAccessor>
2428
```
2529
26-
#### Parameters
27-
`TAccessor`
30+
### Parameters
31+
*TAccessor*
2832
An accessor class.
2933
30-
`TRowset`
34+
*TRowset*
3135
A rowset class.
36+
37+
## Requirements
38+
**Header:** atldbcli.h
3239
3340
## Members
3441
3542
### Methods
3643
3744
|||
3845
|-|-|
39-
|[Bind](../../data/oledb/caccessorrowset-bind.md)|Creates bindings (used when **bBind** is specified as false in [CCommand::Open](../../data/oledb/ccommand-open.md)).|
46+
|[Bind](../../data/oledb/caccessorrowset-bind.md)|Creates bindings (used when `bBind` is specified as **false** in [CCommand::Open](../../data/oledb/ccommand-open.md)).|
4047
|[CAccessorRowset](../../data/oledb/caccessorrowset-caccessorrowset.md)|Constructor.|
4148
|[Close](../../data/oledb/caccessorrowset-close.md)|Closes the rowset and any accessors.|
4249
|[FreeRecordMemory](../../data/oledb/caccessorrowset-freerecordmemory.md)|Frees any columns in the current record that need to be freed.|
4350
|[GetColumnInfo](../../data/oledb/caccessorrowset-getcolumninfo.md)|Implements [IColumnsInfo::GetColumnInfo](https://msdn.microsoft.com/en-us/library/ms722704.aspx).|
4451
4552
## Remarks
4653
Class `TAccessor` manages the accessor. Class *TRowset* manages the rowset.
54+
55+
## <a name="bind"></a> CAccessorRowset::Bind
56+
Creates the bindings if you specified `bBind` as false in [CCommand::Open](../../data/oledb/ccommand-open.md).
4757
48-
## Requirements
49-
**Header:** atldbcli.h
58+
### Syntax
59+
60+
```cpp
61+
HRESULT Bind();
62+
63+
```
64+
65+
### Return Value
66+
A standard HRESULT.
67+
68+
## <a name="caccessorrowset"></a> CAccessorRowset::CAccessorRowset
69+
Initializes the `CAccessorRowset` object.
70+
71+
### Syntax
72+
73+
```cpp
74+
CAccessorRowset();
75+
76+
```
77+
78+
## <a name="close"></a> CAccessorRowset::Close
79+
Releases any active accessors and the rowset.
80+
81+
### Syntax
82+
83+
```cpp
84+
void Close();
85+
86+
```
87+
88+
### Remarks
89+
Releases any associated memory.
90+
91+
## <a name="freerecordmemory"></a> CAccessorRowset::FreeRecordMemory
92+
Frees any columns in the current record that need to be freed.
93+
94+
### Syntax
95+
96+
```cpp
97+
void FreeRecordMemory();
98+
99+
```
100+
101+
## <a name="getcolumninfo"></a> CAccessorRowset::GetColumnInfo
102+
Gets column information from the opened rowset.
103+
104+
### Syntax
105+
106+
```cpp
107+
HRESULT GetColumnInfo(DBORDINAL* pulColumns,
108+
DBCOLUMNINFO** ppColumnInfo,
109+
LPOLESTR* ppStrings) const;
110+
111+
HRESULT GetColumnInfo(DBORDINAL* pColumns,
112+
DBCOLUMNINFO** ppColumnInfo);
113+
```
114+
115+
#### Parameters
116+
See [IColumnsInfo::GetColumnInfo](https://msdn.microsoft.com/en-us/library/ms722704.aspx) in the *OLE DB Programmer's Reference*.
117+
118+
### Return Value
119+
A standard HRESULT.
120+
121+
### Remarks
122+
The user must free the returned column information and string buffer. Use the second version of this method when you use [CDynamicAccessor](../../data/oledb/cdynamicaccessor-class.md) and need to override the bindings.
123+
124+
For more information, see [IColumnsInfo::GetColumnInfo](https://msdn.microsoft.com/en-us/library/ms722704.aspx) in the *OLE DB Programmer's Reference*.
50125
51126
## See Also
52127
[OLE DB Consumer Templates](../../data/oledb/ole-db-consumer-templates-cpp.md)

docs/data/oledb/caccessorrowset-close.md

Lines changed: 0 additions & 32 deletions
This file was deleted.

docs/data/oledb/caccessorrowset-freerecordmemory.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

docs/data/oledb/caccessorrowset-getcolumninfo.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

docs/data/oledb/caccessorrowset-members.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)