PermissionType Property

The set of users to which the permission applies.

Syntax

int GetPermissionType(int iPermissionIndex);
int SetPermissionType(int iPermissionIndex, int iPermissionType);

Possible Values

PT_USER(0), 
PT_GROUP(1),
PT_DOMAIN(2),
PT_ANYONE(3)

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 Qt Edition - Version 20.0 [Build 8265]