Dela via


TableClient Constructors

Definition

Overloads

TableClient()

Initializes a new instance of the TableClient class for mocking.

TableClient(String, String)

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

TableClient(Uri, TableClientOptions)

Initializes a new instance of the TableClient using the specified Uri which contains a SAS token. See GetSasBuilder(TableSasPermissions, DateTimeOffset) for creating a SAS token.

TableClient(String, String, TableClientOptions)

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

TableClient(Uri, AzureSasCredential, TableClientOptions)

Initializes a new instance of the TableClient using the specified Uri and AzureSasCredential. See GetSasBuilder(TableSasPermissions, DateTimeOffset) for creating a SAS token.

TableClient(Uri, String, TableSharedKeyCredential)

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

TableClient(Uri, String, TokenCredential, TableClientOptions)

Initializes a new instance of the TableClient using the specified Uri and TokenCredential.

TableClient(Uri, String, TableSharedKeyCredential, TableClientOptions)

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

TableClient()

Source:
TableClient.cs

Initializes a new instance of the TableClient class for mocking.

protected TableClient ();
Protected Sub New ()

Applies to

TableClient(String, String)

Source:
TableClient.cs

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

public TableClient (string connectionString, string tableName);
new Azure.Data.Tables.TableClient : string * string -> Azure.Data.Tables.TableClient
Public Sub New (connectionString As String, tableName As String)

Parameters

connectionString
String

A connection string includes the authentication information required for your application to access data in an Azure Table account at runtime.

For more information, Configure Azure Storage connection strings.

tableName
String

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

Exceptions

connectionString or tableName is null.

connectionString is invalid.

Applies to

TableClient(Uri, TableClientOptions)

Source:
TableClient.cs

Initializes a new instance of the TableClient using the specified Uri which contains a SAS token. See GetSasBuilder(TableSasPermissions, DateTimeOffset) for creating a SAS token.

public TableClient (Uri endpoint, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableClient : Uri * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableClient
Public Sub New (endpoint As Uri, Optional options As TableClientOptions = Nothing)

Parameters

endpoint
Uri

A Uri referencing the table service account. This is likely to be similar to "https://{account_name}.table.core.windows.net/?{sas_token}" or "https://{account_name}.table.cosmos.azure.com?{sas_token}".

options
TableClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Exceptions

endpoint does not start with 'https'.

Applies to

TableClient(String, String, TableClientOptions)

Source:
TableClient.cs

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

public TableClient (string connectionString, string tableName, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableClient : string * string * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableClient
Public Sub New (connectionString As String, tableName As String, Optional options As TableClientOptions = Nothing)

Parameters

connectionString
String

A connection string includes the authentication information required for your application to access data in an Azure Storage account at runtime.

For more information, Configure Azure Storage connection strings.

tableName
String

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

options
TableClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Exceptions

tableName is an empty string.

connectionString or tableName is null.

connectionString is invalid.

Applies to

TableClient(Uri, AzureSasCredential, TableClientOptions)

Source:
TableClient.cs

Initializes a new instance of the TableClient using the specified Uri and AzureSasCredential. See GetSasBuilder(TableSasPermissions, DateTimeOffset) for creating a SAS token.

public TableClient (Uri endpoint, Azure.AzureSasCredential credential, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableClient : Uri * Azure.AzureSasCredential * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableClient
Public Sub New (endpoint As Uri, credential As AzureSasCredential, Optional options As TableClientOptions = Nothing)

Parameters

endpoint
Uri

A Uri referencing the table service account. This is likely to be similar to "https://{account_name}.table.core.windows.net" or "https://{account_name}.table.cosmos.azure.com".

credential
AzureSasCredential

The shared access signature credential used to sign requests.

options
TableClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Exceptions

endpoint does not start with 'https'.

credential is null.

Applies to

TableClient(Uri, String, TableSharedKeyCredential)

Source:
TableClient.cs

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

public TableClient (Uri endpoint, string tableName, Azure.Data.Tables.TableSharedKeyCredential credential);
new Azure.Data.Tables.TableClient : Uri * string * Azure.Data.Tables.TableSharedKeyCredential -> Azure.Data.Tables.TableClient
Public Sub New (endpoint As Uri, tableName As String, credential As TableSharedKeyCredential)

Parameters

endpoint
Uri

A Uri referencing the table service account. This is likely to be similar to "https://{account_name}.table.core.windows.net/" or "https://{account_name}.table.cosmos.azure.com/".

tableName
String

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

credential
TableSharedKeyCredential

The shared key credential used to sign requests.

Exceptions

tableName is an empty string.

tableName or credential is null.

Applies to

TableClient(Uri, String, TokenCredential, TableClientOptions)

Source:
TableClient.cs

Initializes a new instance of the TableClient using the specified Uri and TokenCredential.

public TableClient (Uri endpoint, string tableName, Azure.Core.TokenCredential tokenCredential, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableClient : Uri * string * Azure.Core.TokenCredential * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableClient
Public Sub New (endpoint As Uri, tableName As String, tokenCredential As TokenCredential, Optional options As TableClientOptions = Nothing)

Parameters

endpoint
Uri

A Uri referencing the table service account. This is likely to be similar to "https://{account_name}.table.core.windows.net" or "https://{account_name}.table.cosmos.azure.com".

tableName
String

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

tokenCredential
TokenCredential

The TokenCredential used to authorize requests.

options
TableClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Exceptions

endpoint does not start with 'https'. or tableName is an empty string.

tableName, endpoint, or tokenCredential is null.

Applies to

TableClient(Uri, String, TableSharedKeyCredential, TableClientOptions)

Source:
TableClient.cs

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

public TableClient (Uri endpoint, string tableName, Azure.Data.Tables.TableSharedKeyCredential credential, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableClient : Uri * string * Azure.Data.Tables.TableSharedKeyCredential * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableClient
Public Sub New (endpoint As Uri, tableName As String, credential As TableSharedKeyCredential, Optional options As TableClientOptions = Nothing)

Parameters

endpoint
Uri

A Uri referencing the table service account. This is likely to be similar to "https://{account_name}.table.core.windows.net/" or "https://{account_name}.table.cosmos.azure.com/".

tableName
String

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

credential
TableSharedKeyCredential

The shared key credential used to sign requests.

options
TableClientOptions

Optional client options that define the transport pipeline policies for authentication, retries, etc., that are applied to every request.

Exceptions

tableName is an empty string.

tableName or credential is null.

Applies to