[This topic is part of the Microsoft Azure Storage Client Library 1.7, which has been deprecated. See
Storage Client Library for the latest version.]
Initializes a new instance of the
CloudTableClient class using the specified Table service endpoint as a string, and the Storage account credentials.
Namespace: Microsoft.WindowsAzure.StorageClient
Assembly: Microsoft.WindowsAzure.StorageClient (in Microsoft.WindowsAzure.StorageClient.dll)
Usage
Visual Basic |
---|
Dim baseAddress As String
Dim credentials As StorageCredentials
Dim instance As New CloudTableClient(baseAddress, credentials) |
Syntax
Visual Basic |
---|
Public Sub New ( _
baseAddress As String, _
credentials As StorageCredentials _
) |
C# |
---|
public CloudTableClient (
string baseAddress,
StorageCredentials credentials
) |
C++ |
---|
public:
CloudTableClient (
String^ baseAddress,
StorageCredentials^ credentials
) |
Parameters
- baseAddress
Type: System.String
The Table service endpoint to use to create the client.
- credentials
Type: Microsoft.WindowsAzure.StorageCredentials
The storage account credentials.
Example
The following code snippet constructs an instance of the CloudTableClient class.
C# | Copy Code |
---|
// Get connection string from a configuration file.
CloudStorageAccount storageAccount =
CloudStorageAccount.Parse(
ConfigurationManager.AppSettings["StorageAccountConnectionString"]);
// Create service client for credentialed access to the Table service.
CloudTableClient tableClient =
new CloudTableClient(
storageAccount.TableEndpoint.ToString(),
storageAccount.Credentials); |
Platforms
Change History
See Also