Datasnap.DSAuth.TDSRoleItem.ApplyTo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ApplyTo: TStrings read FApplyTo write SetApplyTo;

C++

__property ApplyTo;

Properties

Type Visibility Source Unit Parent
property published
Datasnap.DSAuth.pas
Datasnap.DSAuth.hpp
Datasnap.DSAuth TDSRoleItem

Description

Specifies the items to which the roles of this instance apply.

Datasnap.DSAuth.TDSRoleItem.ApplyTo inherits from Datasnap.DSAuth.TDSCustomRoleItem.ApplyTo. All content below this line refers to Datasnap.DSAuth.TDSCustomRoleItem.ApplyTo.

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.

See Also