AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Returns an array of table names associated with the current account and endpoint. The output from ListTables is paginated, with each page returning a maximum of 100 table names.

Note:

For PCL and Unity this operation is only available in asynchronous form. Please refer to ListTablesAsync.

Namespace: Amazon.DynamoDBv2
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public abstract ListTablesResponse ListTables(
         ListTablesRequest request
)
Parameters
request
Type: Amazon.DynamoDBv2.Model.ListTablesRequest

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

Return Value
The response from the ListTables service method, as returned by DynamoDB.

Exceptions

ExceptionCondition
InternalServerErrorException An error occurred on the server side.

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

    // List retrieved tables
    List 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

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

Unity:
Supported Versions: 4.6 and above
Supported Platforms: Android, iOS, Standalone

See Also