Datasnap.DSAuth.TRoleAuth.Create
[–] Properties | |
---|---|
Type: constructor | |
Visibility: public | |
Source: Datasnap.DSAuth.pas Datasnap.DSAuth.hpp
| |
Unit: Datasnap.DSAuth | |
Parent: TRoleAuth |
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 */;
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.