|
by Steve Marx via Steve Marx's blog on 6/1/2010 11:48:41 PM
A question came up on the Windows Azure MSDN forum recently about how to find the total number of bytes used by a blobs in a particular container. There’s no API that retrieves that information at the container level, but you can compute it by enumerating the blobs, as in the following one-liner: var totalBytes = (from CloudBlob blob in
container.ListBlobs(new BlobRequestOptions() { UseFlatBlobListing = true })
select blob.Properties.Length
... [ read more ]
|