Skip to content

Latest commit

 

History

History
74 lines (64 loc) · 1.75 KB

File metadata and controls

74 lines (64 loc) · 1.75 KB
title CSession::Open | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
f1_keywords
ATL::CSession::Open
CSession::Open
CSession.Open
ATL.CSession.Open
dev_langs
C++
helpviewer_keywords
Open method
ms.assetid c2050c2c-9817-4857-be49-189f346968f6
caps.latest.revision 10
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

CSession::Open

Opens a new session for the data source object.

Syntax

  
      HRESULT Open(  
   const CDataSource& ds,  
   DBPROPSET *pPropSet = NULL,  
   ULONG ulPropSets = 0  
) throw( );  

Parameters

ds
[in] The data source for which the session is to be opened.

pPropSet
[in] A pointer to an array of DBPROPSET structures containing properties and values to be set. See Property Sets and Property Groups in the OLE DB Programmer's Reference in the Windows SDK.

ulPropSets
[in] The number of DBPROPSET structures passed in the pPropSet argument.

Return Value

A standard HRESULT.

Remarks

You must open the data source object using CDataSource::Open before passing it to CSession::Open.

Requirements

Header: atldbcli.h

See Also

CSession Class