CopyPastor

Detecting plagiarism made easy.

Score: 0.8479516482820698; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-05-18
by Anuj Gupta

Original Post

Original - Posted on 2013-05-10
by Richard



            
Present in both answers; Present only in the new answer; Present only in the old answer;

The new API has the .Exists() function call. Just make sure that you use the `GetBlockBlobReference`, which doesn't perform the call to the server. It makes the function as easy as:
```public static bool BlobExistsOnCloud(CloudBlobClient client, string containerName, string key) { return client.GetContainerReference(containerName) .GetBlockBlobReference(key) .Exists(); }
The new API has the .Exists() function call. Just make sure that you use the `GetBlockBlobReference`, which doesn't perform the call to the server. It makes the function as easy as:
public static bool BlobExistsOnCloud(CloudBlobClient client, string containerName, string key) { return client.GetContainerReference(containerName) .GetBlockBlobReference(key) .Exists(); }


        
Present in both answers; Present only in the new answer; Present only in the old answer;