Locating a database on a server and local disk
The NotesDbDirectory class provides a means to locate databases on servers and the user's local disk. To access a particular server, specify its name as the argument to the New method for NotesDbDirectory. The GetFirstDatabase and GetNextDatabase methods return handles to NotesDatabase objects. The Name property contains the name of the server or workstation.
The Parent property, supported in COM only, returns the session that contains the DbDirectory object. In COM, you can access NotesDatabase objects through the following methods in the NotesDbDirectory class:
Methods |
Description |
---|---|
CreateDatabase |
Creates a new database. For COM only. |
OpenDatabase |
Opens a database. For COM only. |
OpenDatabaseByReplicaID |
Opens a database with a specified replica ID. For COM only. |
OpenDatabaseIfModified |
Opens a database if modified since a specified date. For COM only. |
OpenMailDatabase |
Opens current user's mail database. For COM only. |