ListTablesRequest Class

.NET Framework 4.5
 
 
 
Did this page help you?  Yes  No   Tell us about it...
Container for the parameters to the ListTables operation.

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

Inheritance Hierarchy

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

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

Syntax

C#
public class ListTablesRequest : AmazonWebServiceRequest
         IRequestEvents

The ListTablesRequest type exposes the following members

Constructors

  Name Description
Public Method ListTablesRequest()

Properties

  Name Description
Public Property ExclusiveStartTableName The name of the table that starts the list. If you already ran a ListTables operation and received a LastEvaluatedTableName value in the response, use that value here to continue the list.

Constraints:Length3 - 255Pattern[a-zA-Z0-9_.-]+

Public Property Limit A maximum number of table names to return.

Constraints:Range1 - 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).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

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

.NET for Windows Phone:
Supported in: Window Phone 8