Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTSession.Attach

Attaches an already initialized c-tree session to a c-tree.NET session object.

Declaration

void CTSession.Attach(bool isTransactionActive);

Description

CTSession.Attach() attaches an already initialized c-tree ISAM or low-level session to a c-treeDB .NET session object. Attached sessions have no information concerning the server, user name or user password. Parameter isTransactionActive should indicate if a transaction is active or not.

Return

void

Example


// logon to c-tree using ISAM function

INTISAMX(10, 32, 32, 10, (USERPRF_NTKEY | USERPRF_CLRCHK));

// attach session to server handle

hSession.Attach(false);

//

// ... do something useful ...

//

// detach from session

hSession.Detach();

// perform an ISAM logout

CLISAM();

See Also

CTSession.Detach()

TOCIndex