CDataConnection::OpenNewSession

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CDataConnection::OpenNewSession.

Opens a new session using the current connection object's data source.

Syntax

  
      HRESULT OpenNewSession(   
   CSession & session    
) throw( );  

Parameters

session
[in/out] A reference to the new session object.

Remarks
The new session uses the current connection object's contained data source object as its parent, and can access all of the same information as the data source.

Return Value

A standard HRESULT.

Requirements

Header: atldbcli.h

See Also

CDataConnection Class