Skip to content

Instantly share code, notes, and snippets.

@takekazuomi
Created July 10, 2019 00:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takekazuomi/9ddb9fba5e04931240e30753364fe794 to your computer and use it in GitHub Desktop.
Save takekazuomi/9ddb9fba5e04931240e30753364fe794 to your computer and use it in GitHub Desktop.
using System;
using Azure.Storage.Blobs;
using Azure.Storage.Blobs.Models;
// Azure Storage Blobs client library for .NET
// https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/storage/Azure.Storage.Blobs/README.md
// samples
// https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/storage/Azure.Storage.Blobs/samples
namespace blob
{
class Program
{
static void Main(string[] args)
{
var connectionString = "<connection_string>";
// コンテナを示すクライアントがサポートされた
var container = new BlobContainerClient(connectionString, "sample-container");
// blobの列挙
foreach (BlobItem blob in container.GetBlobs())
{
Console.WriteLine(blob.Name);
}
Console.WriteLine("Hello World!");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment