LOTUSSCRIPT/COM/OLE CLASSES


Locating a database on a server and local disk
Example

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:

MethodsDescription
CreateDatabaseCreates a new database. For COM only.
OpenDatabaseOpens 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.

Example
See Also