コード例 #1
0
 private static RuleAction.Reply.ActionFlags ReplyFlagsToMapiReplyFlags(RuleAction.ReplyAction.ReplyFlags replyFlags)
 {
     RuleAction.Reply.ActionFlags actionFlags = RuleAction.Reply.ActionFlags.None;
     if ((replyFlags & RuleAction.ReplyAction.ReplyFlags.DoNotSendToOriginator) == RuleAction.ReplyAction.ReplyFlags.DoNotSendToOriginator)
     {
         actionFlags |= RuleAction.Reply.ActionFlags.DoNotSendToOriginator;
     }
     if ((replyFlags & RuleAction.ReplyAction.ReplyFlags.UseStockReplyTemplate) == RuleAction.ReplyAction.ReplyFlags.UseStockReplyTemplate)
     {
         actionFlags |= RuleAction.Reply.ActionFlags.UseStockReplyTemplate;
     }
     return(actionFlags);
 }
コード例 #2
0
 internal static RuleAction.ReplyAction.ReplyFlags MapiReplyFlagsToReplyFlags(RuleAction.Reply.ActionFlags mapiReplyFlags)
 {
     RuleAction.ReplyAction.ReplyFlags replyFlags = RuleAction.ReplyAction.ReplyFlags.None;
     if ((mapiReplyFlags & RuleAction.Reply.ActionFlags.DoNotSendToOriginator) == RuleAction.Reply.ActionFlags.DoNotSendToOriginator)
     {
         replyFlags |= RuleAction.ReplyAction.ReplyFlags.DoNotSendToOriginator;
     }
     if ((mapiReplyFlags & RuleAction.Reply.ActionFlags.UseStockReplyTemplate) == RuleAction.Reply.ActionFlags.UseStockReplyTemplate)
     {
         replyFlags |= RuleAction.ReplyAction.ReplyFlags.UseStockReplyTemplate;
     }
     return(replyFlags);
 }
コード例 #3
0
 public ReplyAction(uint userFlags, RuleAction.ReplyAction.ReplyFlags replyFlags, StoreObjectId replyTemplateMessageId, Guid replyTemplateGuid) : base(RuleActionType.Reply, userFlags, replyTemplateMessageId, replyTemplateGuid)
 {
     EnumValidator.ThrowIfInvalid <RuleAction.ReplyAction.ReplyFlags>(replyFlags);
     this.Flags = replyFlags;
 }