title: Retrieving a blob filename
body: <p>So I'm trying to retrieve details of a file I have in blob storage. The idea being that clients ask for documents to be placed on their portal that relate specifically to them.</p>
  
  <p>This is a migration and currently the files are listed in a grid in the format:</p>
  
  <p>File Name, File Size, File Type, Download Link.</p>
  
  <p>The bit I'm having trouble with is retrieving the blob properties.</p>
  
  <p>Here is a code snippet of what I have currently.</p>
  
  <pre><code>public void BindGridDocuments()
  {
      var storageAccount = CloudStorageAccount.Parse(ConfigurationManager.ConnectionStrings["StorageConnection"].ConnectionString);
      var blobStorage = storageAccount.CreateCloudBlobClient();
      CloudBlobContainer container = blobStorage.GetContainerReference("documents");
      var documentCollection = container.ListBlobs();
      foreach (var document in documentCollection)
      {
          string filename = document.Uri.ToString();
  
      }
  }
  </code></pre>