Skip to content

Commit a391bcc

Browse files
author
mtx48109
committed
added additional class
1 parent 6c19d4b commit a391bcc

File tree

4 files changed

+61
-77
lines changed

4 files changed

+61
-77
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,11 @@
11301130
"redirect_url": "/cpp/data/oledb/cstreamrowset-class#cstreamrowset",
11311131
"redirect_document_id": false
11321132
},
1133+
{
1134+
"source_path": "docs/data/oledb/ctable-open.md.md",
1135+
"redirect_url": "/cpp/data/oledb/ctable-class#open",
1136+
"redirect_document_id": false
1137+
},
11331138
{
11341139
"source_path": "docs/dotnet/index.md",
11351140
"redirect_url": "/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp",

docs/data/oledb/TOC.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@
121121
### [CSession Class](csession-class.md)
122122
### [CStreamRowset Class](cstreamrowset-class.md)
123123
### [CTable Class](ctable-class.md)
124-
#### [CTable::Open](ctable-open.md)
125124
### [CXMLAccessor Class](cxmlaccessor-class.md)
126125
#### [CXMLAccessor::GetXMLColumnData](cxmlaccessor-getxmlcolumndata.md)
127126
#### [CXMLAccessor::GetXMLRowData](cxmlaccessor-getxmlrowdata.md)

docs/data/oledb/ctable-class.md

Lines changed: 56 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ ms.custom: ""
44
ms.date: "11/04/2016"
55
ms.technology: ["cpp-data"]
66
ms.topic: "reference"
7-
f1_keywords: ["ATL::CTable", "ATL.CTable", "CTable"]
7+
f1_keywords: ["ATL::CTable", "ATL.CTable", "CTable", "ATL.CTable.Open", "ATL::CTable::Open", "CTable::Open", "CTable.Open"]
88
dev_langs: ["C++"]
9-
helpviewer_keywords: ["CTable class"]
9+
helpviewer_keywords: ["CTable class", "Open method"]
1010
ms.assetid: f13fdaa3-e198-4557-977d-54b0bbc3454d
1111
author: "mikeblome"
1212
ms.author: "mblome"
@@ -25,27 +25,75 @@ class CTable :
2525
```
2626
2727
#### Parameters
28-
`TAccessor`
28+
*TAccessor*
2929
An accessor class.
3030
31-
`TRowset`
31+
*TRowset*
3232
A rowset class.
33+
34+
## Requirements
35+
**Header:** atldbcli.h
3336
3437
## Members
3538
3639
### Methods
3740
3841
|||
3942
|-|-|
40-
|[Open](../../data/oledb/ctable-open.md)|Opens the table.|
43+
|[Open](#open)|Opens the table.|
4144
4245
## Remarks
4346
See [CCommand](../../data/oledb/ccommand-class.md) for information on how to execute a command to access a rowset.
47+
48+
## <a name="open"></a> CTable::Open
49+
Opens the table.
4450
45-
## Requirements
46-
**Header:** atldbcli.h
51+
### Syntax
52+
53+
```cpp
54+
HRESULT Open(const CSession& session,
55+
LPCWSTR wszTableName,
56+
DBPROPSET* pPropSet = NULL,
57+
ULONG ulPropSets = 0) throw ();
58+
59+
60+
HRESULT Open(const CSession& session,
61+
LPCSTR szTableName,
62+
DBPROPSET* pPropSet = NULL,
63+
ULONG ulPropSets = 0) throw ();
64+
65+
66+
HRESULT Open(const CSession& session,
67+
DBID& dbid,
68+
DBPROPSET* pPropSet = NULL,
69+
ULONG ulPropSets = 0) throw ();
70+
```
71+
72+
#### Parameters
73+
*session*
74+
[in] The session for which the table is opened.
75+
76+
*wszTableName*
77+
[in] The name of the table to open, passed as a Unicode string.
78+
79+
*szTableName*
80+
[in] The name of the table to open, passed as an ANSI string.
81+
82+
*dbid*
83+
[in] The `DBID` of the table to open.
84+
85+
*pPropSet*
86+
[in] A pointer to an array of [DBPROPSET](https://msdn.microsoft.com/library/ms714367.aspx) structures containing properties and values to be set. See [Property Sets and Property Groups](https://msdn.microsoft.com/library/ms713696.aspx) in the *OLE DB Programmer's Reference* in the Windows SDK. The default value of NULL specifies no properties.
87+
88+
*ulPropSets*
89+
[in] The number of [DBPROPSET](https://msdn.microsoft.com/library/ms714367.aspx) structures passed in the *pPropSet* argument.
90+
91+
### Return Value
92+
A standard HRESULT.
93+
94+
### Remarks
95+
For more details, see [IOpenRowset::OpenRowset](https://msdn.microsoft.com/library/ms716724.aspx) in the *OLE DB Programmer's Reference*.
4796

4897
## See Also
4998
[OLE DB Consumer Templates](../../data/oledb/ole-db-consumer-templates-cpp.md)
5099
[OLE DB Consumer Templates Reference](../../data/oledb/ole-db-consumer-templates-reference.md)
51-
[IOpenRowset::OpenRowset](https://msdn.microsoft.com/en-us/library/ms716724.aspx)

docs/data/oledb/ctable-open.md

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

0 commit comments

Comments
 (0)