Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTSession::GetAttachMode

Declaration

CTATTACH_MODE CTSession::GetAttachMode() const;

Description

Retrieve the current session attach mode. GetAttachMode() will not execute a c-tree instance switch.

Return Values

One of the following values is returned:

Returned CTATTACH mode

Description

CTATTACH_NONE

Handle or Session object is not attached, or Handle not a valid session handle.

CTATTACH_SESSION

Handle or Session object is attached to a c-treeDB session.

CTATTACH_CTREEID

Handle or Session object is attached to a c-tree instance id.

CTATTACH_CURRENT

Handle or Session object was attached to current c-tree instance.

See Also

CTSession::Attach(), CTSession::Detach()

TOCIndex