JAVA/CORBA CLASSES


contains method
Indicates whether or not a DocumentCollection contains all of the given Documents or all of the Documents associated with the given ViewEntries.

Note This method is new with Release 8.0.1.

Defined in

DocumentCollection

Syntax

public boolean contains(int noteID)
   throws NotesException

public boolean contains(Document document)
   throws NotesException

public boolean contains(DocumentCollection collection)
   throws NotesException

Parameters

int noteID


Document document
DocumentCollection collection
Legal values
Usage

The document or documents whose containment this method determines must be in the same database as the original collection. Otherwise, the method will return the error "the specified note or notes do not exist in the database" or, if a noteID was passed to the method that matches a noteID in the original collection's database, the method will use the unintended document.

If collection is an empty document collection, this method will return True.

Language cross-reference

Contains method in LotusScript NotesDocumentCollection class