【发布时间】:2017-05-17 00:13:36
【问题描述】:
是否有任何方法可以使用 Azure Functions API 删除 Azure 表存储条目?从 Azure Functions 绑定可以轻松地对表执行的仅有两个操作是读取和写入,使用ICollector<T> 接口。我想使用由计时器触发的函数来安排定期清理表。
【问题讨论】:
标签: azure azure-table-storage azure-functions
是否有任何方法可以使用 Azure Functions API 删除 Azure 表存储条目?从 Azure Functions 绑定可以轻松地对表执行的仅有两个操作是读取和写入,使用ICollector<T> 接口。我想使用由计时器触发的函数来安排定期清理表。
【问题讨论】:
标签: azure azure-table-storage azure-functions
是否有任何方法可以使用 Azure Functions API 删除 Azure 表存储条目?通过 Azure Functions 绑定可以轻松对表执行的仅有两个操作是使用 ICollector 接口进行读取和写入。
正如您所说,Azure 函数中的storage tables binding scenarios 正在读取行并写入一行或多行,如果您想删除 Azure 函数中的实体,您可以尝试reference "Microsoft.WindowsAzure.Storage" and import namespaces。
#r "Microsoft.WindowsAzure.Storage"
using System;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
然后您可以将 C# 代码写入retrieve the entity and delete it from Azure table storage。
【讨论】: