Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTSession.IsExclusive

Retrieves the status of the session exclusive flag.

Declaration

bool CTSession.IsExclusive();

Description

CTSession.IsExclusive() retrieves the status of the session exclusive flag.

Return

Value

Symbolic Constant

Explanation

0

NO

Session is shared.

1

YES

Session is exclusive.

Example


// verify an exclusive logon

CTSession hSession(CTSESSION_CTDB);

hSession.SetExclusive(true);

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

if (hSession.IsExclusive())

printf("Session is exclusive\n");

else

printf("Session is shared\n");

See Also

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

TOCIndex