Delen via


TableServiceClient Class

Definition

The TableServiceClient provides synchronous and asynchronous methods to perform table level operations with Azure Tables hosted in either Azure storage accounts or Azure Cosmos DB table API.

public class TableServiceClient
type TableServiceClient = class
Public Class TableServiceClient
Inheritance
TableServiceClient

Constructors

TableServiceClient()

Initializes a new instance of the TableServiceClient class for mocking.

TableServiceClient(String, TableClientOptions)

Initializes a new instance of the TableServiceClient using the specified connection string.

TableServiceClient(String)

Initializes a new instance of the TableServiceClient using the specified connection string.

TableServiceClient(Uri, AzureSasCredential, TableClientOptions)

Initializes a new instance of the TableServiceClient using the specified Uri.

TableServiceClient(Uri, AzureSasCredential)

Initializes a new instance of the TableServiceClient using the specified Uri containing a shared access signature (SAS) token credential.

TableServiceClient(Uri, TableClientOptions)

Initializes a new instance of the TableServiceClient using the specified Uri containing a shared access signature (SAS) token credential. See GenerateSasUri(TableAccountSasPermissions, TableAccountSasResourceTypes, DateTimeOffset) for creating a SAS token.

TableServiceClient(Uri, TableSharedKeyCredential, TableClientOptions)

Initializes a new instance of the TableServiceClient using the specified table service Uri and TableSharedKeyCredential.

TableServiceClient(Uri, TableSharedKeyCredential)

Initializes a new instance of the TableServiceClient using the specified table service Uri and TableSharedKeyCredential.

TableServiceClient(Uri, TokenCredential, TableClientOptions)

Initializes a new instance of the TableServiceClient using the specified Uri.

Properties

AccountName

The name of the table account with which this client instance will interact.

Uri

The Uri for the table account.

Methods

CreateQueryFilter(Expression<Func<TableItem,Boolean>>)

Creates an OData filter query string from the provided expression.

CreateQueryFilter(FormattableString)

Create an OData filter expression from an interpolated string. The interpolated values will be quoted and escaped as necessary.

CreateTable(String, CancellationToken)

Creates a table on the service.

CreateTableAsync(String, CancellationToken)

Creates a table on the service.

CreateTableIfNotExists(String, CancellationToken)

Creates a table on the service.

CreateTableIfNotExistsAsync(String, CancellationToken)

Creates a table on the service.

DeleteTable(String, CancellationToken)

Deletes a table on the service.

DeleteTableAsync(String, CancellationToken)

Deletes a table on the service.

GenerateSasUri(TableAccountSasBuilder)

The GenerateSasUri(TableAccountSasBuilder) returns a Uri that generates a Table Service SAS Uri based on the Client properties and builder passed.

For more information, see Constructing a Service SAS

GenerateSasUri(TableAccountSasPermissions, TableAccountSasResourceTypes, DateTimeOffset)

The GenerateSasUri(TableAccountSasPermissions, TableAccountSasResourceTypes, DateTimeOffset) returns a Uri that generates a Table Service Shared Access Signature (SAS) Uri based on the Client properties and parameters passed.

For more information, see Constructing a Service SAS.

GetProperties(CancellationToken)

Gets the properties of an account's Table service, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.

GetPropertiesAsync(CancellationToken)

Gets the properties of an account's Table service, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.

GetSasBuilder(String, TableAccountSasResourceTypes, DateTimeOffset)

Gets a TableAccountSasBuilder instance scoped to the current table.

GetSasBuilder(TableAccountSasPermissions, TableAccountSasResourceTypes, DateTimeOffset)

Gets a TableAccountSasBuilder instance scoped to the current account.

GetStatistics(CancellationToken)

Retrieves statistics related to replication for the Table service. It is only available on the secondary location endpoint when read-access geo-redundant replication is enabled for the account.

GetStatisticsAsync(CancellationToken)

Retrieves statistics related to replication for the Table service. It is only available on the secondary location endpoint when read-access geo-redundant replication is enabled for the account.

GetTableClient(String)

Gets an instance of a TableClient configured with the current TableServiceClient options, affinitized to the specified tableName.

Query(Expression<Func<TableItem,Boolean>>, Nullable<Int32>, CancellationToken)

Gets a list of tables from the storage account.

Query(FormattableString, Nullable<Int32>, CancellationToken)

Gets a list of tables from the storage account.

Query(String, Nullable<Int32>, CancellationToken)

Gets a list of tables from the storage account.

QueryAsync(Expression<Func<TableItem,Boolean>>, Nullable<Int32>, CancellationToken)

Gets a list of tables from the storage account.

QueryAsync(FormattableString, Nullable<Int32>, CancellationToken)

Gets a list of tables from the storage account.

QueryAsync(String, Nullable<Int32>, CancellationToken)

Gets a list of tables from the storage account.

SetProperties(TableServiceProperties, CancellationToken)

Sets properties for an account's Table service endpoint, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.

SetPropertiesAsync(TableServiceProperties, CancellationToken)

Sets properties for an account's Table service endpoint, including properties for Analytics and CORS (Cross-Origin Resource Sharing) rules.

Applies to