Public · Protected · Private
how to get list of files or filenames in azure blob storage
Type: Public  |  Created: 2019-10-04  |  Frozen: Yes
« Previous Public Blog Next Public Blog »
Comments
  • CloudStorageAccount stgAccount = CloudStorageAccount.Parse(YOUR_CON_STRING);

    var blobClient = stgAccount.CreateCloudBlobClient();

    var stgContainer = blobClient.GetContainerReference("CONTAINER");

    var blobs = stgContainer.ListBlobs().OfType().ToList();

    foreach (var blob in blobs)

    {

    string bName = blob.Name;

    long bSize = blob.Properties.Length;

    string bModifiedOn = blob.Properties.LastModified.ToString();

    }

This blog is frozen. No new comments or edits allowed.