コード例 #1
0
        internal static DeferredAction Create(MailboxSession session, StoreObjectId ruleFolderId, string providerName)
        {
            Util.ThrowOnNullArgument(session, "session");
            Util.ThrowOnNullArgument(ruleFolderId, "ruleFolderId");
            Util.ThrowOnNullArgument(providerName, "providerName");
            if (!IdConverter.IsFolderId(ruleFolderId))
            {
                throw new ArgumentException(ServerStrings.InvalidFolderId(ruleFolderId.ToBase64String()));
            }
            DeferredAction deferredAction = new DeferredAction();

            deferredAction.actions = new List <RuleAction>();
            deferredAction.ruleIds = new List <long>();
            deferredAction.message = MessageItem.Create(session, session.GetDefaultFolderId(DefaultFolderType.DeferredActionFolder));
            deferredAction.message[InternalSchema.ItemClass]         = "IPC.Microsoft Exchange 4.0.Deferred Action";
            deferredAction.message[InternalSchema.RuleFolderEntryId] = ruleFolderId.ProviderLevelItemId;
            deferredAction.message[InternalSchema.RuleProvider]      = providerName;
            return(deferredAction);
        }
コード例 #2
0
 public static DeferredAction CreateDAM(MailboxSession session, StoreObjectId ruleFolderId, string providerName)
 {
     return(DeferredAction.Create(session, ruleFolderId, providerName));
 }