JAVA/CORBA CLASSES


contains method
Indicates whether or not a ViewEntryCollection contains all of the Documents or ViewEntries given.

Note This method is new with Release 8.0.1.

Defined in

ViewEntryCollection

Syntax

public boolean viewEntryCollection.contains(int noteID)
   throws NotesException

public boolean viewEntryCollection.contains(Document doc)
   throws NotesException

public boolean viewEntryCollection.contains(DocumentCollection dcol)
   throws NotesException

public boolean viewEntryCollection.contains(ViewEntry ventry)
   throws NotesException

public boolean viewEntryCollection.contains(ViewEntryCollection vec)
   throws NotesException

Parameters

int noteID


Document doc
DocumentCollection dcol
ViewEntry ventry
ViewEntryCollection vec
Return values
Usage

The document or documents whose containment this method determines (or the view entries associated with those documents) 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 the dcol or vec parameter is an empty collection, this method will return True.

Language cross-reference

Contains method in LotusScript NotesViewEntryCollection class