daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CloudBlobContainer container = blobClient.GetContainerReference("files");
  2. var documentID = "DCEE0856-D1F9-47B1-995A-CFA5AA999AE5";
  3.  
  4. foreach (var item in container.ListBlobs(prefix:null, useFlatBlobListing:true))
  5. {
  6.     CloudBlockBlob blob = (CloudBlockBlob)item;
  7.     blob.FetchAttributes();
  8.     if (blob.Metadata.Contains(new KeyValuePair<string, string>("documentid", documentID.ToString())))
  9.     {
  10.         break;
  11.     }
  12. }
RAW Paste Data
Top