Agents (NotesDatabase - JavaScript)

Read-only. All of the agents in a database.

Defined in

NotesDatabase

Syntax

getAgents() : java.util.Vector

Usage

The elements of the return vector are of type NotesAgent.

The return vector includes only shared agents.

The database must be open to use this property.

Examples

This data binding for a multiline edit box displays the names of the shared agents in the current database.
var agents = database.getAgents().iterator();
var list = "";
while (agents.hasNext()) {
	list = list + agents.next().getName() + "\n";
}
return list