例: GetAllDocumentsByKey method

次の例は、現在のデータベースの [By Category] ビューで「Spanish leather」カテゴリのすべての文書を取得し、取得した文書を [Boots] フォルダに入れます。

Dim session As New NotesSession
Dim db As NotesDatabase
Dim view As NotesView
Dim dc As NotesDocumentCollection
Set db = session.CurrentDatabase
Set view = db.GetView( "By Category" )
Set dc = view.GetAllDocumentsByKey("Spanish leather", False)
Call dc.PutAllInFolder("Boots")