Datasnap.DSSession.TDSSessionManager.CreateSession
Delphi
function CreateSession<T: TDSSession>(factory: TFactoryMethod;
ASessionLifetime: TDSSessionLifetime; DoNotify: Boolean = True): T; overload;
function CreateSession<T: TDSSession>(factory: TFactoryMethod; userName: string): T; overload;
function CreateSession<T: TDSSession>(factory: TFactoryMethod; userName: string; ASessionLifetime: TDSSessionLifetime): T; overload;
function CreateSession<T: TDSSession>(factory: TFactoryMethod; DoNotify: Boolean = True): T; overload;
C++
template<typename T> T __fastcall CreateSession(_di_TFactoryMethod factory, TDSSessionLifetime ASessionLifetime, bool DoNotify = true)/* overload */;
template<typename T> T __fastcall CreateSession(_di_TFactoryMethod factory, System::UnicodeString userName)/* overload */;
template<typename T> T __fastcall CreateSession(_di_TFactoryMethod factory, System::UnicodeString userName, TDSSessionLifetime ASessionLifetime)/* overload */;
template<typename T> T __fastcall CreateSession(_di_TFactoryMethod factory, bool DoNotify = true)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Datasnap.DSSession.pas Datasnap.DSSession.hpp |
Datasnap.DSSession | TDSSessionManager |
Description
Creates and adds a new session to the session container.
The CreateSession method creates and adds a new session to the session container. There are two CreateSession overloads, each one taking in different parameters.