title CDataConnection::operator BOOL | 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 CDataConnection::operatorBOOL ATL::CDataConnection::operatorBOOL CDataConnection.operatorBOOL ATL.CDataConnection.operatorBOOL dev_langs C++ helpviewer_keywords BOOL operator operator bool ms.assetid ad0bea7f-61ff-47f7-8127-32a31e3e9b9d caps.latest.revision 8 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 CDataConnection::operator BOOL Determines whether the current session is open or not. Syntax operator BOOL( ) throw( ); Remarks Returns BOOL (MFC typedef) value. TRUE means the current session is open; FALSE means the current session is closed. Requirements Header: atldbcli.h See Also CDataConnection Class CDataConnection::operator bool