LOTUSSCRIPT /COM/OLE のクラス


例:SetUserPasswordSettings メソッド
次のコードは、ユーザー Sally Mae のユーザーレコードの [管理] タブにあるパスワード管理設定を変更するシステム管理要求を次のとおりに作成します。
[次のサインインでインターネットパスワードを変更] チェックボックスは選択されないままです。

Sub Initialize
 Dim session As New NotesSession
 Dim adminp As NotesAdministrationProcess
 Set adminp = _
 session.CreateAdministrationProcess("myServer/Northeast")
 noteid$ = adminp.SetUserPasswordSettings( _
 "CN=Sally Mae/O=Northeast", PWD_CHK_LOCKOUT, 5, 9, False)
 If noteid$<> "" Then
   Dim db As New NotesDatabase("myServer/Northeast", "admin4.nsf")
   Dim ws As New NotesUIWorkspace
   Call ws.EditDocument(False, db.GetDocumentByID(noteid$))
 End If
End Sub

関連項目