Amazon DynamoDB
开发人员指南 (API 版本 2012-08-10)
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅 Amazon AWS 入门

06-DeleteTable.cs

06-DeleteTable.cs 程序将删除 TryDaxTable。在测试完成之后运行此程序。

using Amazon.DynamoDBv2.Model; using System; using Amazon.DynamoDBv2; namespace ClientTest { class Program { static void Main(string[] args) { AmazonDynamoDBClient client = new AmazonDynamoDBClient(); var tableName = "TryDaxTable"; var request = new DeleteTableRequest() { TableName = tableName }; var response = client.DeleteTableAsync(request).Result; Console.WriteLine("Hit <enter> to continue..."); Console.ReadLine(); } } }