Datasnap.DSSession.TDSSession.RequiresAuthorization
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Datasnap.DSSession.pas Datasnap.DSSession.hpp
| |
| Unit: Datasnap.DSSession | |
| Parent: TDSSession | |
Delphi
function RequiresAuthorization(MethodInfo: TDSMethodInfo): Boolean; virtual;
C++
virtual bool __fastcall RequiresAuthorization(Datasnap::Dscommonserver::TDSMethodInfo* MethodInfo);
Description
Returns whether the given method requires authorization.
The RequiresAuthorization method returns True if the given method requires authorization, False otherwise.
For example, DSMetadata.GetDatabase is called when a SQLConnection to the server is established, so checking for authorization would be redundant (and possibly falsely fail), as the connection is already authenticated.