Created
July 10, 2019 00:21
-
-
Save takekazuomi/9ddb9fba5e04931240e30753364fe794 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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