Aspose.Email.Examples.CSharp.Email.Outlook.SetFollowUpflag.Run C# (CSharp) Méthode

Run() public static méthode

public static Run ( ) : void
Résultat void
        public static void Run()
        {
            //ExStart:SetFollowUpflag
            // The path to the File directory.
            string dataDir = RunExamples.GetDataDir_Outlook();

            MailMessage mailMsg = new MailMessage();
            mailMsg.Sender = "[email protected]";
            mailMsg.To = "[email protected]";
            mailMsg.Body = "This message will test if follow up options can be added to a new mapi message.";
            MapiMessage mapi = MapiMessage.FromMailMessage(mailMsg);

            DateTime dtStartDate = new DateTime(2013, 5, 23, 14, 40, 0);
            DateTime dtReminderDate = new DateTime(2013, 5, 23, 16, 40, 0);
            DateTime dtDueDate = dtReminderDate.AddDays(1);

            FollowUpOptions options = new FollowUpOptions("Follow Up", dtStartDate, dtDueDate, dtReminderDate);
            FollowUpManager.SetOptions(mapi, options);
            mapi.Save(dataDir + "SetFollowUpflag_out.msg");
            //ExEnd:SetFollowUpflag
        }
    }
SetFollowUpflag