Beispiel #1
0
        public static ReminderMessage CreateReminderMessage(StoreSession session, StoreId destFolderId, string itemClass)
        {
            ReminderMessage reminderMessage = null;
            bool            flag            = false;
            ReminderMessage result;

            try
            {
                reminderMessage = ItemBuilder.CreateNewItem <ReminderMessage>(session, destFolderId, ItemCreateInfo.ReminderMessageInfo);
                reminderMessage[InternalSchema.ItemClass] = itemClass;
                flag   = true;
                result = reminderMessage;
            }
            finally
            {
                if (!flag && reminderMessage != null)
                {
                    reminderMessage.Dispose();
                    reminderMessage = null;
                }
            }
            return(result);
        }
Beispiel #2
0
 public new static ReminderMessage Bind(StoreSession session, StoreId storeId)
 {
     return(ReminderMessage.Bind(session, storeId, null));
 }