例: CacheSize property

次の Visual Basic コード (CacheSize_Click Sub) は、キャッシュのサイズを増加します。

Dim s As New NotesSession
Dim db As NotesDatabase
Dim v As NotesView
Dim n As NotesViewNavigator
Private Sub CacheSize_Click()
n.CacheSize = n.CacheSize + 1
MsgBox n.CacheSize, , "Cache size"
End Sub
Private Sub InitializeNav_Click()
Set s = New NotesSession
s.Initialize
Set db = s.GetDatabase("", "Web test")
Set v = db.GetView("Main View")
v.AutoUpdate = False
Set n = v.CreateViewNav
End Sub