2

I found this extension method to check Blob storage exists

Testing Existence of a Windows Azure Blob

Checking if a blob exists in Azure Storage

However, I found similar build in utility methods inside Microsoft.WindowsAzure.Storage.

  • CloudBlobContainer.Exists
  • CloudBlockBlob.Exists

As far as I tested, they function similar to the extension method.

Question:

Are they new utility methods? Should I use build in Exists method or use custom extension method.

Community
  • 1
  • 1
Win
  • 61,100
  • 13
  • 102
  • 181

1 Answers1

6

What Steve wrote in his blog post is truly an extension method and thus not part of the core library however the methods you mentioned are part of core storage client library. My recommendation would be to use the methods which are part of core library as they would be kept up-to-date if anything changes in the library.

Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241