Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTSession.Detach

Detaches a c-tree.NET session object from an existing c-tree connection.

Declaration

void CTSession.Detach();

Description

CTSession.Detach() detaches a c-treeDB .NET session object from an existing c-tree connection. The c-tree ISAM or low-level un-initialization is not called, but the session object is re-initialized.

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.Attach()

TOCIndex