Datasnap.DSSession.TDSSessionManager.CreateSession
[–] Properties | |
---|---|
Type: function | |
Visibility: public | |
Source: Datasnap.DSSession.pas Datasnap.DSSession.hpp
| |
Unit: Datasnap.DSSession | |
Parent: TDSSessionManager |
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 */;
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.