DSAzure.TAccessPolicy.GetPermission

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
DSAzure.pas
DSAzure.hpp
Unit: DSAzure
Parent: TAccessPolicy

Delphi

function GetPermission: String;

C++

System::UnicodeString __fastcall GetPermission();

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.

See Also