IAmazonDynamoDB.ListTables Method (ListTablesRequest)

.NET Framework 3.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...

Returns an array of all the tables associated with the current account and endpoint.

Namespace: Amazon.DynamoDBv2
Assembly: AWSSDK.dll
Version: 2.0.0.3

Syntax

C#
public abstract ListTablesResponse ListTables(
         ListTablesRequest listTablesRequest
)

Parameters

listTablesRequest
Type: Amazon.DynamoDBv2.Model.ListTablesRequest

Container for the necessary parameters to execute the ListTables service method on AmazonDynamoDBv2.

Return Value
Type: Amazon.DynamoDBv2.Model.ListTablesResponse
The response from the ListTables service method, as returned by AmazonDynamoDBv2.

Exceptions

Examples

This example shows how to get a list of all tables.

ListTables sample


// Create a client
AmazonDynamoDBClient client = new AmazonDynamoDBClient();

string startTableName = null;
do
{
    // Configure ListTables request with the marker value
    ListTablesRequest request = new ListTablesRequest
    {
        ExclusiveStartTableName = startTableName,
    };

    // Issue call
    ListTablesResult result = client.ListTables(request).ListTablesResult;

    // List retrieved tables
    List<string> tables = result.TableNames;
    Console.WriteLine("Retrieved tables: {0}",
        string.Join(", ", tables));

    // Update marker value from the result
    startTableName = result.LastEvaluatedTableName;

} while (!string.IsNullOrEmpty(startTableName)); // Test marker value

                

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5