Datasnap.DSSession.TDSSessionManager.CreateSession

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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 */;

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
function public
Datasnap.DSSession.pas
Datasnap.DSSession.hpp
Datasnap.DSSession TDSSessionManager

Beschreibung

Erstellt und fügt eine neue Sitzung dem Container hinzu.

Die Methode CreateSession erstellt und fügt eine neue Sitzung dem Container hinzu. Es gibt zwei CreateSession-Überladungen und jede Überladung übernimmt andere Parameter.

Siehe auch