public static void KeepMapiNotification(UserContext userContext, OwaStoreObjectId folderId) { using (CalendarAdapter calendarAdapter = new CalendarAdapter(userContext, folderId)) { calendarAdapter.KeepMapiNotification(); } }
private void LoadFolderViewStates(CalendarFolder advicedFolder, ref ExDateTime[] days, ref CalendarViewType viewType, out int viewWidth, out ReadingPanePosition readingPanePosition) { OwaStoreObjectId owaStoreObjectId = null; if (advicedFolder != null) { owaStoreObjectId = OwaStoreObjectId.CreateFromStoreObject(advicedFolder); } if (owaStoreObjectId != null && (owaStoreObjectId.Equals(this.UserContext.CalendarFolderOwaId) || owaStoreObjectId.IsPublic)) { CalendarAdapter.InternalGetFolderViewStates(this.UserContext, advicedFolder, ref days, ref viewType, out viewWidth, out readingPanePosition); return; } using (CalendarFolder folderForContent = Utilities.GetFolderForContent <CalendarFolder>(this.UserContext, this.UserContext.CalendarFolderOwaId, CalendarUtilities.FolderViewProperties)) { CalendarAdapter.InternalGetFolderViewStates(this.UserContext, folderForContent, ref days, ref viewType, out viewWidth, out readingPanePosition); } }