c# - 如果分区键包含感叹号,Azure 存储查询不会返回数据

标签 c# .net azure encoding azure-storage

我存储了一些数据,其中分区键包含感叹号,当我对该分区键进行查询时,我得到了奇怪的结果。

我已经尝试过以下方法。假设分区键是 t!est

我尝试了以下查询,结果令人满意

PartitionKey eq 't!est' = Noting returned
PartitionKey gt 't!est' = Noting returned
PartitionKey ge 't!est' = Noting returned
PartitionKey lt 't!est' = Record returned (Along side others)
PartitionKey le 't!est' = Record returned (Along side others)

我本以为平等者至少能找回我的记录。有什么我不明白的吗?

测试:

  • SDK .Net 版本 7.2.1
  • SDK .Net 版本 9.3.3
  • Microsoft Azure 存储资源管理器版本 1.8.1

最佳答案

正如GauravMantri所述在他的评论中。这是 sdk 的问题,它正在转换“!”为“not”,因此查询将不匹配。

关于c# - 如果分区键包含感叹号,Azure 存储查询不会返回数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56235303/

相关文章:

c# - 如何找出 .net 类实现了哪些接口(interface)?

Azure Devops API 用于获取包含文件夹的存储库中的所有文件

c# - 如何在 C# mvc 中将 Json 结果转换为对象

c# - 执行二进制文件时出错

c# - 在 C# 中使用 TCPClient 和 NetworkStream 发送文件

c# - .NET TreeNode 能否知道它的父级已更改?

c# - 为什么引用较早的 .net 版本在我的本地计算机上有效,但在另一台计算机上无效?

c# - 引用值 : string or integer?

linux - 如何使用 blobxfer 从 azure blob 存储下载子目录

Azure 文件复制在构建管道中第二次运行时失败