Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTBase.SwitchInstance

Syntax

void SwitchInstance ( )

Parameters

This method has no parameters.

Description

Force a switch to the FairCom DB instance indicated by the Session object. Each session object has its unique c-tree instance id. When most c-treeDB .NET methods are called, they automatically perform a c-tree instance switch. SwitchInstance() may be useful before calling specific c-tree ISAM or low level calls to make sure the correct instance is active before making those calls. If any errors are detected, a CTException is thrown.

Return

None.

TOCIndex