PermissionRole Property
The role specified by the permission.
Syntax
ANSI (Cross Platform) int GetPermissionRole(int iPermissionIndex);
int SetPermissionRole(int iPermissionIndex, int iPermissionRole); Unicode (Windows) INT GetPermissionRole(INT iPermissionIndex);
INT SetPermissionRole(INT iPermissionIndex, INT iPermissionRole);
Possible Values
PR_READER(0),
PR_COMMENTER(1),
PR_WRITER(2),
PR_OWNER(3),
PR_FILE_ORGANIZER(4),
PR_ORGANIZER(5)
- (int)permissionRole:(int)permissionIndex; - (void)setPermissionRole:(int)permissionIndex:(int)newPermissionRole;
Possible Values
PR_READER(0),
PR_COMMENTER(1),
PR_WRITER(2),
PR_OWNER(3),
PR_FILE_ORGANIZER(4),
PR_ORGANIZER(5)
#define PID_GOOGLEDRIVE_PERMISSIONROLE 64 IPWORKSCLOUD_EXTERNAL void* IPWORKSCLOUD_CALL IPWorksCloud_GoogleDrive_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_GoogleDrive_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal); IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_GoogleDrive_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
0
Remarks
The role specified by the permission.
This property defines the role specified by the permission. Possible values are:
prReader (0) (default) | Read-only permissions. |
prCommenter (1) | Read-only plus commenting permissions. |
prWriter (2) | Read, write, and comment permissions. |
prOwner (3) | Full ownership (personal drives only). |
prFileOrganizer (4) | Writer permissions, plus the ability to move and trash resources (shared drives only). |
prOrganizer (5) | File organizer permissions, plus the ability to permanently delete resources from, and rename/delete/alter the membership of, a shared drive (shared drives only). |
The PermissionIndex parameter specifies the index of the item in the array. The size of the array is controlled by the PermissionCount property.
This property is not available at design time.
Data Type
Integer