Beispiel #1
0
        public static async Task <bool> TryUpdateMailFolderAsync()
        {
            var folderId = await EmailSnippets.CreateMailFolderAsync("Inbox", "FolderToUpdateAndDelete");


            if (!string.IsNullOrEmpty(folderId))
            {
                bool isFolderUpdated = await EmailSnippets.UpdateMailFolderAsync(folderId, "FolderToDelete");

                //Cleanup
                await EmailSnippets.DeleteMailFolderAsync(folderId);

                return(isFolderUpdated);
            }

            return(false);
        }