DSAzure.TAccessPolicy.SetPermission
Delphi
procedure SetPermission(const rwdl: String);
C++
void __fastcall SetPermission(const System::UnicodeString rwdl);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | DSAzure.pas DSAzure.hpp |
DSAzure | TAccessPolicy |
Description
Parses the given string and populates the Perm fields.
SetPermission takes in a string and parses it to populate the PermRead (r), PermWrite (w), PermDelete (d), and PermList (l) fields. When calling this procedure, each of those fields will be set to False
, unless the string passed in contains their corresponding character.
For example, the following code
MyAccessPolicy.SetPermission('rw');
will set the Perm fields as shown below:
PermRead = True;
PermWrite = True;
PermDelete = False;
PermList = False;
Note: We recommend that you use the Permission property and not the setter property directly.