public GetContainerReference ( string name ) : Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer | ||
name | string | Container name |
return | Microsoft.WindowsAzure.Storage.Blob.CloudBlobContainer |
public CloudBlobContainer GetContainerReference(string name)
{
Uri containerUri = new Uri(String.Format("{0}{1}/", BlobEndPoint, name));
string testName = "testaccount";
Guid guid = Guid.NewGuid();
string testKey = Convert.ToBase64String(guid.ToByteArray());
StorageCredentials credentials = new StorageCredentials(testName, testKey);
return new CloudBlobContainer(containerUri, credentials);
}