Bde.DBTables.TSessionList.List

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: property
Visibility: public
Source:
Bde.DBTables.pas
Bde.DBTables.hpp
Unit: Bde.DBTables
Parent: TSessionList

Delphi

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

C++

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

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