Пример #1
0
        /// <summary>
        /// Save message rule.
        /// </summary>
        /// <returns></returns>
        public void Save()
        {
            this.PreValidateSave();
            MessageRule rule = this.Service.CreateInboxRule(this);

            this.propertyBag = rule.propertyBag;
            this.MailboxId   = rule.MailboxId;
        }
Пример #2
0
        /// <summary>
        /// Save message rule - Async.
        /// </summary>
        /// <returns></returns>
        public async System.Threading.Tasks.Task SaveAsync()
        {
            this.PreValidateSave();
            MessageRule rule = await this.Service.CreateInboxRuleAsync(this);

            this.propertyBag = rule.propertyBag;
            this.MailboxId   = rule.MailboxId;
        }