AWS SDK Version 2 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.

.NET Framework 4.5
 
Container for the parameters to the ListTables operation. 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.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.DynamoDBv2.AmazonDynamoDBRequest
      Amazon.DynamoDBv2.Model.ListTablesRequest

Namespace: Amazon.DynamoDBv2.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class ListTablesRequest : AmazonDynamoDBRequest
         IRequestEvents

The ListTablesRequest type exposes the following members

Constructors

NameDescription
Public Method ListTablesRequest() Empty constructor used to set properties independently even when a simple constructor is available
Public Method ListTablesRequest(string) Instantiates ListTablesRequest with the parameterized properties
Public Method ListTablesRequest(string, int) Instantiates ListTablesRequest with the parameterized properties

Properties

NameTypeDescription
Public Property ExclusiveStartTableName System.String Gets and sets the property ExclusiveStartTableName.

The first table name that this operation will evaluate. Use the value that was returned for LastEvaluatedTableName in a previous operation, so that you can obtain the next page of results.

Public Property Limit System.Int32 Gets and sets the property Limit.

A maximum number of table names to return. If this parameter is not specified, the limit is 100.

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8