DSAzure.TAccessPolicy.GetPermission
Delphi
function GetPermission: String;
C++
System::UnicodeString __fastcall GetPermission(void);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | DSAzure.pas DSAzure.hpp |
DSAzure | TAccessPolicy |
Description
Converts the values for the Perm fields into a String representation.
GetPermission returns a String representation of the Perm fields: PermRead (r), PermWrite (w), PermDelete (d), and PermList (l), where the result String contains only the specific permission's corresponding character, if the field's value is set to True.
For example, if the Perm fields are set as follows
PermRead = True;
PermWrite = True;
PermDelete = False;
PermList = False;
then GetPermission will return 'rw'.
Note: We recommend that you use the Permission property and not the getter property directly.