decline (NotesCalendarNotice - JavaScript)

会議を辞退します。

定義場所

NotesCalendarNotice

構文

decline(comments:string) : void

decline(comments:string、keepinformed:boolean) : void

パラメータ 説明
comments 会議の変更に関するコメント。
keepinformed 会議に関する通知を引き続き受け取るには、true を指定します。
Possible exception テキスト 説明
NotesError.NOTES_ERR_UNSUPPORTEDACTION 4811 サポートされないアクション メソッドが、エントリに対して無効なアクションを適用しようとしています。
NotesError.NOTES_ERR_OVERWRITEDISALLOWED 4813 個人の変更を上書きすることになるため、このアクションは実行できません アクションを確認した後、上書きフラグを設定して再実行してください。
NotesError.NOTES_ERR_IDNOTFOUND 4814 ID が見つかりません NotesCalendarNotice オブジェクトの識別子がカレンダーの通知を示していません。

このボタンイベントは会議を辞退します。
var dbdir:NotesDbDirectory = session.getDbDirectory("");
var maildb:NotesDatabase = dbdir.openMailDatabase();
var cal:NotesCalendar = session.getCalendar(maildb);
var unid:string = sessionScope.noticeunid;
var caln:NotesCalendarNotice = cal.getNoticeByUNID(unid);
caln.decline("Will be out", true);
requestScope.status = "Calendar notice for UNID " + unid + " declined¥n";

LotusScript® 構文と例

NotesCalendarNotice.Decline(Byval comments As String, Optional keepinformed As Boolean)
このエージェントは会議を辞退します。
Sub Initialize
	Dim session As New NotesSession
	Dim maildb As New NotesDatabase("", "")
	Dim unid As String
	Dim cal As NotesCalendar
	Dim caln As NotesCalendarNotice
	REM Get calendar for current user
	Call maildb.Openmail()
	Set cal = session.getCalendar(maildb)
	REM Get notice and decline
	unid = session.Getenvironmentstring("noticeunid")
	Set caln = cal.Getnoticebyunid(unid)
	Call caln.Decline("Will be out", True)
End Sub

Java™ 構文と例

void NotesCalendarNotice.decline(String comments)
void NotesCalendarNotice.decline(String comments, boolean keepinformed)
このエージェントは会議を辞退します。
import lotus.domino.*;

public class JavaAgent extends AgentBase {

    public void NotesMain() {

      try {
          Session session = getSession();
          AgentContext agentContext = session.getAgentContext();

          // (Your code goes here)
          DbDirectory dbdir = session.getDbDirectory("");
          Database maildb = dbdir.openMailDatabase();
          NotesCalendar cal = session.getCalendar(maildb);
          // Get notice and decline
          String unid = session.getEnvironmentString("noticeunid");
          NotesCalendarNotice caln = cal.getNoticeByUNID(unid);
          caln.decline("Will be out", true);

      } catch(Exception e) {
          e.printStackTrace();
       }
   }
}