AzureCloudServices.Common.Helpers.AzureStorageHelper.GetAzureTable C# (CSharp) Method

GetAzureTable() public static method

public static GetAzureTable ( string tableName ) : Microsoft.WindowsAzure.Storage.Table.CloudTable
tableName string
return Microsoft.WindowsAzure.Storage.Table.CloudTable
        public static CloudTable GetAzureTable(string tableName)
        {
            var storageAccount = Microsoft.WindowsAzure.Storage
            .CloudStorageAccount.Parse(
            RoleEnvironment.GetConfigurationSettingValue
            ("StorageConnectionString"));
            // Get table for working with tables.
            var tableClient = storageAccount.CreateCloudTableClient();
            CloudTable table = tableClient.GetTableReference(tableName);
            return table;
        }