/// <summary> /// blob Container作成 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void ContainerCreateButton_Click(object sender, RoutedEventArgs e) { if (String.IsNullOrEmpty(ContainerText.Text)) { return; } if (await blob.BlobContainerExistsAsync(ContainerText.Text)) { var msg = new ContentDialog(); msg.Title = "Container"; msg.Content = $"「{ContainerText.Text}」は既に存在しています。"; msg.PrimaryButtonText = "OK"; await msg.ShowAsync(); } else { var msg = new ContentDialog(); msg.Title = "Container"; msg.Content = $"「{ContainerText.Text}」を作成してよろしいですか?"; msg.PrimaryButtonText = "OK"; msg.SecondaryButtonText = "NO"; var res = await msg.ShowAsync(); if (res == ContentDialogResult.Primary) { await blob.BlobContainerCreateAsync(ContainerText.Text); } } }