Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTSession.FindDatabase

Syntax

bool FindDatabase( String Name, StringBuilder Path)

bool FindDatabase( String Name, StringBuilder Path, out ulong uid)

bool FindDatabase(ulong uid, StringBuilder Name, StringBuilder Path)

Parameters

  • Name [in or out] the database name
  • Path [out] the database path
  • uid [in or out] the database uid

Description

Locates a database in a session. If the prototype FindDatabase(String Name, StringBuilder Path) is used, Name is an input, and the method returns the database path in Path. If the prototype FindDatabase(String Name, StringBuilder Path, out ulong uid) is used, Name is an input, and the method returns the database path, and uid, in Path and uid, respectively. If the prototype FindDatabase(ulong uid, StringBuilder Name, StringBuilder Path) is used, uid is an input, and the method returns the database name, and path in Name and Path respectively.

Return

FindDatabase() returns true if the database is found, false otherwise.

See Also

FirstDatabase(), GetDatabase(), NextDatabase()

TOCIndex