gpt4 book ai didi

c# - 如何添加和检索 Azure Blob 的附加信息

转载 作者:行者123 更新时间:2023-12-03 04:46:21 26 4
gpt4 key购买 nike

有没有办法在 Azure 中为 blob 添加附加信息?

我想存储一些相关信息,将 blob 连接到文档数据库中的其他实体,例如包含 JSON 的字符串。

我知道当我使用 Azure 存储资源管理器时有 blob 的元数据,但我想从代码中使用它。

这是关于此主题的相关问题: Adding Description/Metadata to Azure Blob

如何根据此元数据检索 blob?

最佳答案

你检查过这个吗link

public static async Task AddContainerMetadataAsync(CloudBlobContainer container)
{
// Add some metadata to the container.
container.Metadata.Add("docType", "textDocuments");
container.Metadata["category"] = "guidance";

// Set the container's metadata.
await container.SetMetadataAsync();
}

请记住

The name of your metadata must conform to the naming conventions for C# identifiers.

关于c# - 如何添加和检索 Azure Blob 的附加信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53369937/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com