CTable::Open

打开表。

HRESULT Open( 
   const CSession& session, 
   LPCWSTR wszTableName, 
   DBPROPSET* pPropSet = NULL, 
   ULONG ulPropSets = 0 
) throw ( ); 
HRESULT Open( 
   const CSession& session, 
   LPCSTR szTableName, 
   DBPROPSET* pPropSet = NULL, 
   ULONG ulPropSets = 0 
) throw ( ); 
HRESULT Open( 
   const CSession& session, 
   DBID& dbid, 
   DBPROPSET* pPropSet = NULL, 
   ULONG ulPropSets = 0 
) throw ( );

参数

  • session
    [in] 表中打开的会话。

  • wszTableName
    [in] 打开表的名称,通过为 Unicode 字符串。

  • szTableName
    [in] 打开表的名称,通过为 ANSI 字符串。

  • dbid
    [in] 打开表的 DBID

  • pPropSet
    [in] 对数组的指针包含属性和值的结构将 DBPROPSET。 见属性集和属性组OLE DB程序员参考在Windows SDK。 NULL的默认值指定没有属性。

  • ulPropSets
    [in] DBPROPSET 结构数。pPropSet 参数传递的。

返回值

标准版HRESULT

备注

有关更多信息,请参见 IOpenRowset::OpenRowset(在 OLE DB 程序员参考 中)。

要求

标头: atldbcli.h

请参见

参考

CTable 类