IsPrivateAddressBook (NotesDatabase - JavaScript)

Read-only. Indicates if a database is a Personal Address Book.

Defined in

NotesDatabase

Syntax

isPrivateAddressBook() : boolean
Legal value Description
true if the database is a Personal Address Book
false if the database is not a Personal Address Book

Usage

This property is available for NotesDatabase objects retrieved by getAddressBooks in NotesSession. For other NotesDatabase objects, this property has no value and evaluates to false.

The database must be open to use this property.

Examples

This button gets the private address books available to the current session.
requestScope.status = "Private address books:";
var books = session.getAddressBooks().iterator();
while (books.hasNext()) {
	var book:NotesDatabase = books.next();
	book.open();
	if (book.isPrivateAddressBook()) {
		requestScope.status += "\n\t" + book.getTitle();
	}
}