Bde.DBTables.TSessionList.List

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property List[const SessionName: string]: TSession read GetSessionByName;

C++

__property TSession* List[const System::UnicodeString SessionName] = {read=GetSessionByName};

Properties

Type Visibility Source Unit Parent
property public
Bde.DBTables.pas
Bde.DBTables.hpp
Bde.DBTables TSessionList

Description

Returns a specified session component.

Use List to return a pointer to a specific session component managed by the session list. List does not change which session is current. SessionName specifies the session component to return, and must match the SessionName property of an existing session component. If no such session exists, List raises an EDatabaseError exception with a message specifying the invalid session name.

Note: To prevent raising an exception, call the FindSession method instead of using the List property.

See Also