CdbDocument::SetUserName, GetUserName Property

Sets or returns a value that represents a user, or group of users, of a CdbDocument object.

The setting or return value is a string that evaluates to the name of a user.

Syntax

VOIDSetUserName(LPCTSTR pstr);

CStringGetUserName(VOID);

Set Parameters

Type Example Description
LPCTSTR pstr A pointer to a string that contains the name of a user.

Remarks

The UserName property represents a user or group of users when you manipulate the access permissions of a CdbDocument object (Microsoft Jet workspaces only).

To find or set the permissions for a particular user or group of users, first set the UserName property to the user or group name that you want to examine. Then check the Permissions property setting to determine what permissions that user or group of users has, or set the Permissions property to change the permissions.