C# Class Microsoft.WindowsAzure.Commands.Storage.Test.Service.MockStorageTableManagement

Mocked table management
Inheritance: IStorageTableManagement
Show file Open project: AzureRT/azure-sdk-tools Class Usage Examples

Public Properties

Property Type Description
tableList List

Public Methods

Method Description
CreateTableIfNotExists ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : bool

Cloud a azure storage table if not exists.

Delete ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null ) : void

Delete the specified azure storage table

DoesTableExist ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : bool

Checks whether the table exists.

GetTablePermissions ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : Microsoft.WindowsAzure.Storage.Table.TablePermissions

Get table permission

GetTableReference ( string name ) : Microsoft.WindowsAzure.Storage.Table.CloudTable

Get a table reference

GetTableReferenceFromServer ( string name, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : Microsoft.WindowsAzure.Storage.Table.CloudTable

Get table reference from azure server

ListTables ( string prefix, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : IEnumerable

List azure storage tables

Method Details

CreateTableIfNotExists() public method

Cloud a azure storage table if not exists.
public CreateTableIfNotExists ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : bool
table Microsoft.WindowsAzure.Storage.Table.CloudTable Cloud table object
requestOptions Microsoft.WindowsAzure.Storage.Table.TableRequestOptions Table request options
operationContext Microsoft.WindowsAzure.Storage.OperationContext Operation context
return bool

Delete() public method

Delete the specified azure storage table
public Delete ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions = null, Microsoft.WindowsAzure.Storage.OperationContext operationContext = null ) : void
table Microsoft.WindowsAzure.Storage.Table.CloudTable Cloud table object
requestOptions Microsoft.WindowsAzure.Storage.Table.TableRequestOptions Table request options
operationContext Microsoft.WindowsAzure.Storage.OperationContext Operation context
return void

DoesTableExist() public method

Checks whether the table exists.
public DoesTableExist ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : bool
table Microsoft.WindowsAzure.Storage.Table.CloudTable Cloud table object
requestOptions Microsoft.WindowsAzure.Storage.Table.TableRequestOptions Table request options
operationContext Microsoft.WindowsAzure.Storage.OperationContext Operation context
return bool

GetTablePermissions() public method

Get table permission
public GetTablePermissions ( Microsoft.WindowsAzure.Storage.Table.CloudTable table, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : Microsoft.WindowsAzure.Storage.Table.TablePermissions
table Microsoft.WindowsAzure.Storage.Table.CloudTable CloudTable object
requestOptions Microsoft.WindowsAzure.Storage.Table.TableRequestOptions Table request options
operationContext Microsoft.WindowsAzure.Storage.OperationContext Operation context
return Microsoft.WindowsAzure.Storage.Table.TablePermissions

GetTableReference() public method

Get a table reference
public GetTableReference ( string name ) : Microsoft.WindowsAzure.Storage.Table.CloudTable
name string Table name
return Microsoft.WindowsAzure.Storage.Table.CloudTable

GetTableReferenceFromServer() public method

Get table reference from azure server
public GetTableReferenceFromServer ( string name, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : Microsoft.WindowsAzure.Storage.Table.CloudTable
name string Table name
requestOptions Microsoft.WindowsAzure.Storage.Table.TableRequestOptions Table request options
operationContext Microsoft.WindowsAzure.Storage.OperationContext Operation context
return Microsoft.WindowsAzure.Storage.Table.CloudTable

ListTables() public method

List azure storage tables
public ListTables ( string prefix, Microsoft.WindowsAzure.Storage.Table.TableRequestOptions requestOptions, Microsoft.WindowsAzure.Storage.OperationContext operationContext ) : IEnumerable
prefix string Table name prefix
requestOptions Microsoft.WindowsAzure.Storage.Table.TableRequestOptions Table request options
operationContext Microsoft.WindowsAzure.Storage.OperationContext Operation context
return IEnumerable

Property Details

tableList public property

Exists table lists
public List tableList
return List