我曾经能够使用tableClient.ListTablesSegmentedAsync();
和软件包Microsoft.Azure.Cosmos.Table
列出所有表(表存储)
然而,由于它已被弃用,我想使用推荐的包Azure.Data.Tables
,我缺少列出所有表的功能。
现在如何实现这一点?
您可以遵循这里的示例
/ Use the <see cref="TableServiceClient"> to query the service. Passing in OData filter strings is optional.
Pageable<TableItem> queryTableResults = serviceClient.Query(filter: $"TableName eq '{tableName}'");
Console.WriteLine("The following are the names of the tables in the query results:");
// Iterate the <see cref="Pageable"> in order to access queried tables.
foreach (TableItem table in queryTableResults)
{
Console.WriteLine(table.Name);
}