Guest User

Untitled

a guest
Feb 13th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment