共用方式為


TableServiceClient Constructors

Definition

Overloads

TableServiceClient()

Initializes a new instance of the TableServiceClient class for mocking.

TableServiceClient(Uri, TokenCredential, TableClientOptions)

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

TableServiceClient(Uri, AzureSasCredential, TableClientOptions)

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

TableServiceClient(Uri, TableSharedKeyCredential)

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

TableServiceClient(Uri, TableSharedKeyCredential, TableClientOptions)

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

TableServiceClient(Uri, AzureSasCredential)

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

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, 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()

Source:
TableServiceClient.cs

Initializes a new instance of the TableServiceClient class for mocking.

protected TableServiceClient ();
Protected Sub New ()

Applies to

TableServiceClient(Uri, TokenCredential, TableClientOptions)

Source:
TableServiceClient.cs

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

public TableServiceClient (Uri endpoint, Azure.Core.TokenCredential tokenCredential, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableServiceClient : Uri * Azure.Core.TokenCredential * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableServiceClient
Public Sub New (endpoint As Uri, 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/".

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 or tokenCredential is null.

Applies to

TableServiceClient(Uri, AzureSasCredential, TableClientOptions)

Source:
TableServiceClient.cs

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

public TableServiceClient (Uri endpoint, Azure.AzureSasCredential credential, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableServiceClient : Uri * Azure.AzureSasCredential * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableServiceClient
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'.

endpoint is null.

Applies to

TableServiceClient(Uri, TableSharedKeyCredential)

Source:
TableServiceClient.cs

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

public TableServiceClient (Uri endpoint, Azure.Data.Tables.TableSharedKeyCredential credential);
new Azure.Data.Tables.TableServiceClient : Uri * Azure.Data.Tables.TableSharedKeyCredential -> Azure.Data.Tables.TableServiceClient
Public Sub New (endpoint As Uri, 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/".

credential
TableSharedKeyCredential

The shared key credential used to sign requests.

Exceptions

endpoint or credential is null.

Applies to

TableServiceClient(Uri, TableSharedKeyCredential, TableClientOptions)

Source:
TableServiceClient.cs

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

public TableServiceClient (Uri endpoint, Azure.Data.Tables.TableSharedKeyCredential credential, Azure.Data.Tables.TableClientOptions options);
new Azure.Data.Tables.TableServiceClient : Uri * Azure.Data.Tables.TableSharedKeyCredential * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableServiceClient
Public Sub New (endpoint As Uri, credential As TableSharedKeyCredential, options As TableClientOptions)

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
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

endpoint or credential is null.

Applies to

TableServiceClient(Uri, AzureSasCredential)

Source:
TableServiceClient.cs

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

public TableServiceClient (Uri endpoint, Azure.AzureSasCredential credential);
new Azure.Data.Tables.TableServiceClient : Uri * Azure.AzureSasCredential -> Azure.Data.Tables.TableServiceClient
Public Sub New (endpoint As Uri, credential As AzureSasCredential)

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. See GenerateSasUri(TableAccountSasPermissions, TableAccountSasResourceTypes, DateTimeOffset) for creating a SAS token.

Exceptions

endpoint does not start with 'https'.

credential is null.

Applies to

TableServiceClient(String, TableClientOptions)

Source:
TableServiceClient.cs

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

public TableServiceClient (string connectionString, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableServiceClient : string * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableServiceClient
Public Sub New (connectionString 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.

options
TableClientOptions

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

Exceptions

connectionString is null.

connectionString is invalid.

Applies to

TableServiceClient(String)

Source:
TableServiceClient.cs

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

public TableServiceClient (string connectionString);
new Azure.Data.Tables.TableServiceClient : string -> Azure.Data.Tables.TableServiceClient
Public Sub New (connectionString As String)

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.

Exceptions

connectionString is null.

Applies to

TableServiceClient(Uri, TableClientOptions)

Source:
TableServiceClient.cs

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.

public TableServiceClient (Uri endpoint, Azure.Data.Tables.TableClientOptions options = default);
new Azure.Data.Tables.TableServiceClient : Uri * Azure.Data.Tables.TableClientOptions -> Azure.Data.Tables.TableServiceClient
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/" or "https://{account_name}.table.cosmos.azure.com/".

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'.

endpoint is null.

Applies to