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.
Declaration Syntax
C# |
public class ListTablesRequest : AmazonWebServiceRequest
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
ListTablesRequest()()()() | Initializes a new instance of the ListTablesRequest class | |
Equals(Object) | (Inherited from Object.) | |
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.
Constraints: | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
Limit |
A maximum number of table names to return. If this parameter is not specified, the limit is 100.
Constraints: | |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
WithExclusiveStartTableName(String) | Obsolete.
Sets the ExclusiveStartTableName property
| |
WithLimit(Int32) | Obsolete.
Sets the Limit property
|
Examples
This example shows how to get a list of all tables.
CopyListTables 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
Inheritance Hierarchy
Object | ||
AmazonWebServiceRequest | ||
ListTablesRequest |
See Also