Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 2.3 KB

cdaoworkspaceinfo-structure.md

File metadata and controls

48 lines (34 loc) · 2.3 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: CDaoWorkspaceInfo Structure
CDaoWorkspaceInfo Structure
11/04/2016
CDaoWorkspaceInfo
CDaoWorkspaceInfo structure [MFC]
DAO (Data Access Objects), Workspaces collection
a1f4b25e-f9c6-4196-b075-d1df99c54124

CDaoWorkspaceInfo Structure

The CDaoWorkspaceInfo structure contains information about a workspace defined for data access objects (DAO) database access.

Syntax

struct CDaoWorkspaceInfo
{
    CString m_strName;           // Primary
    CString m_strUserName;       // Secondary
    BOOL m_bIsolateODBCTrans;    // All
};

Parameters

m_strName
Uniquely names the workspace object. To retrieve the value of this property directly, call the querydef object's GetName member function. For more information, see the topic "Name Property" in DAO Help.

m_strUserName
A value that represents the owner of a workspace object. For related information, see the topic "UserName Property" in DAO Help.

m_bIsolateODBCTrans
A value that indicates whether multiple transactions that involve the same ODBC database are isolated. For more information, see CDaoWorkspace::SetIsolateODBCTrans. For related information, see the topic "IsolateODBCTrans Property" in DAO Help.

Remarks

The workspace is an object of class CDaoWorkspace. The references to Primary, Secondary, and All above indicate how the information is returned by the GetWorkspaceInfo member function in class CDaoWorkspace.

Information retrieved by the CDaoWorkspace::GetWorkspaceInfo member function is stored in a CDaoWorkspaceInfo structure. CDaoWorkspaceInfo also defines a Dump member function in debug builds. You can use Dump to dump the contents of a CDaoWorkspaceInfo object.

Requirements

Header: afxdao.h

See also

Structures, Styles, Callbacks, and Message Maps
CDaoWorkspace Class