public static async Task <bool> TryCopyMailFolderAsync() { var folderId = await EmailSnippets.CreateMailFolderAsync("Inbox", "FolderToCopyAndDelete"); if (!string.IsNullOrEmpty(folderId)) { string copiedFolderId = await EmailSnippets.CopyMailFolderAsync(folderId, "Drafts"); if (!string.IsNullOrEmpty(copiedFolderId)) { //Cleanup await EmailSnippets.DeleteMailFolderAsync(folderId); await EmailSnippets.DeleteMailFolderAsync(copiedFolderId); return(true); } } return(false); }