Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTSession.SetExclusive

Sets or clears the session exclusive flag .

Declaration

void CTSession.SetExclusive(bool flag);

Description

CTSession.SetExclusive() sets or clears the session exclusive flag. If a session exclusive flag is set, only one CTSESSION_CTDB or CTSESSION_SQL session will be allowed. Set the session exclusive flag after instantiating a CTSession object, but before performing a logon. Setting the session exclusive flag after a session logon is performed will not have any effect during the current session

Return

void

Example


// perform an exclusive logon

CTSession hSession(CTSESSION_CTDB);

hSession.SetExclusive(true);

hSession.Logon("FAIRCOM", "ADMIN", "ADMIN");

See Also

CTSession.IsExclusive(), CTDatabase.SetExclusive(), CTDatabase.IsExclusive()

TOCIndex