CosmosDbKeyEscape.MaxKeyLength 字段

定义

较旧的库的最大密钥长度为 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

字段值

Value = 255

适用于