CosmosDbKeyEscape.MaxKeyLength 字段
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
较旧的库的最大密钥长度为 255。 限制现在为 1023。 在此库中,255 仍然是向后兼容性的默认值。 若要替代此行为并使用更长的限制,请将 CosmosDbPartitionedStorageOptions.CompatibilityMode 设置为 false。 https://docs.microsoft.com/en-us/azure/cosmos-db/concepts-limits#per-item-limits.
public const int MaxKeyLength = 255;
val mutable MaxKeyLength : int
Public Const MaxKeyLength As Integer = 255