Datasnap.DSAuth.TRoleAuth.Create
Delphi
constructor Create(AuthorizedRoles: string; DeniedRoles: string = ''); overload; virtual;
constructor Create(AllowRoles: TStrings; DenyRoles: TStrings;
DesignTime: Boolean = False); overload; virtual;
C++
__fastcall virtual TRoleAuth(System::UnicodeString AuthorizedRoles, System::UnicodeString DeniedRoles)/* overload */;
__fastcall virtual TRoleAuth(System::Classes::TStrings* AllowRoles, System::Classes::TStrings* DenyRoles, bool DesignTime)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor | public | Datasnap.DSAuth.pas Datasnap.DSAuth.hpp |
Datasnap.DSAuth | TRoleAuth |
Description
Creates an instance of the attribute, specifying the authorized and denied roles.
Create creates a new instance, specifying two comma-separated lists of roles. The first parameter (AuthorizedRoles
) is a list of roles that are authorized for whatever the attribute is associated with. The second parameter (DeniedRoles
) is a list of roles that are not authorized for whatever the attribute is associated with.