Udostępnij za pośrednictwem


CDataConnection::OpenNewSession

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

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

Reference

CDataConnection Class

Other Resources

CDataConnection Members