public static async Task <bool> TryGetMailFoldersAsync() { // The example gets the Inbox and its siblings. var foldersResults = await EmailSnippets.GetMailFoldersAsync(); foreach (var folder in foldersResults.CurrentPage) { if ((folder.DisplayName == "Inbox") || (folder.DisplayName == "Drafts") || (folder.DisplayName == "DeletedItems") || (folder.DisplayName == "SentItems")) { return(true); } } return(false); }