CDaoWorkspace::GetUserName

CString GetUserName( );
throw( CDaoException, CMemoryException );

Return Value

A CString that represents the owner of the workspace object.

Remarks

Call this member function to obtain the name of the owner of the workspace.

To get or set the permissions for the workspace owner, call DAO directly to check the Permissions property setting; this determines what permissions that user has. To work with permissions, you need a SYSTEM.MDA file.

For more information about workspaces, see the article DAO Workspace. For information about calling DAO directly, see Technical Note 54. For related information, see the topic "UserName Property" in DAO Help.

CDaoWorkspace OverviewClass MembersHierarchy Chart

See Also   CDaoWorkspace::SetDefaultUser