Matthew Verstraete
Matthew Verstraete

Reputation: 6791

CloudBlobContainer CreateIfNotExistsAsync vs. CreateIfNotExists

Can anyone explain the difference between the CreateIfNotExists and CreateIfNotExistsAsync methods of the CloudBlobContainer in Windows Azure? The MSDN documentation just says that the CreateIfNotExistsAsync method

Returns a task that creates the container if it does not already exist.

And for CreateIfnotExists

Creates the container if it does not already exist.

So I don't really understand the difference between them.

Upvotes: 0

Views: 2170

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136336

Essentially both of the operations are doing the same thing i.e. creating a blob container if it does not exist. The difference is that one is doing asynchronously (CreateIfNotExistsAsync) and the other synchronously (CreateIfNotExists).

Upvotes: 3

Related Questions