共用方式為


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

適用於