add (NoteCollection - Java)

Adds one or more notes to a note collection.

Defined in

NoteCollection

Syntax

public void add(Agent additionspecifier)
    throws NotesException
public void add(Document additionspecifier)
    throws NotesException
public void add(DocumentCollection additionspecifier)
    throws NotesException
public void add(Form additionspecifier)
    throws NotesException
public void add(NoteCollection additionspecifier)
    throws NotesException
public void add(View additionspecifier)
    throws NotesException
public void add(String additionspecifier)
    throws NotesException
public void add(int additionspecifier)
    throws NotesException

Parameters

Agent additionspecifier

An Agent object representing the note to be added.

Document additionspecifier

A Document object representing the note to be added.

DocumentCollection additionspecifier

A DocumentCollection object representing the note to be added.

Form additionspecifier

A Form object representing the note to be added.

NoteCollection additionspecifier

A NoteCollection object representing the note to be added.

View additionspecifier

A View object representing the note to be added.

String additionspecifier

The note ID of the note to be added.

int additionspecifier

The note ID of the note to be added.

Usage

The Parent database of the note(s) to add must be the same as the note collection.

Example