Datasnap.DSAuth.TDSCustomRoleItem.ApplyTo
Delphi
property ApplyTo : TStrings read FApplyTo write SetApplyTo;
C++
__property System::Classes::TStrings* ApplyTo = {read=FApplyTo, write=SetApplyTo};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Datasnap.DSAuth.pas Datasnap.DSAuth.hpp |
Datasnap.DSAuth | TDSCustomRoleItem |
Description
Specifies the items to which the roles of this instance apply.
Reading the ApplyTo property returns a list of strings that represent the items AuthorizedRoles and DeniedRoles apply to. Each item in the list can be the name of a class, name of a server method, or name of a Class.Method.
If only a class name is specified, the roles will apply to all server methods of that class.
If only a method name is specified, the roles will apply to all server methods with that name, regardless of which class they are in. Note that there is no differentiation between a class name and a server name aside from any naming conventions you may have. So if you have a class and method with the same name, the roles will apply to both.
If you specify ClassName.MethodName, then the roles will apply to the method with the given name only for the specified class, and not all classes.