Muokkaa

Jaa


CDaoWorkspaceInfo Structure

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

Note

DAO is supported through Office 2013. DAO 3.6 is the final version, and it's considered obsolete.

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