IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

PermissionType Property

The set of users to which the permission applies.

Syntax

ANSI (Cross Platform)
int GetPermissionType(int iPermissionIndex);
int SetPermissionType(int iPermissionIndex, int iPermissionType); Unicode (Windows) INT GetPermissionType(INT iPermissionIndex);
INT SetPermissionType(INT iPermissionIndex, INT iPermissionType);

Possible Values

PT_USER(0), 
PT_GROUP(1),
PT_DOMAIN(2),
PT_ANYONE(3)
- (int)permissionType:(int)permissionIndex;
- (void)setPermissionType:(int)permissionIndex:(int)newPermissionType;

Possible Values

PT_USER(0), 
PT_GROUP(1),
PT_DOMAIN(2),
PT_ANYONE(3)
#define PID_GOOGLEDRIVE_PERMISSIONTYPE 65

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 set of users to which the permission applies.

This property defines the set of users to which the permission role defined in PermissionRole applies.

The PermissionEmail and PermissionDomain properties are used to define the user, group, or domain to which the permission applies. The following table shows which property is associated with which permission type:

Value Description Related property
0 (ptUser - default) A single user. PermissionEmail
1 (ptGroup) A group. PermissionEmail
2 (ptDomain) A domain. PermissionDomain
3 (ptAnyone) Anyone, authenticated or not. N/A

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

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]