CosmosDbKeyEscape.MaxKeyLength Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Older libraries had a max key length of 255. The limit is now 1023. In this library, 255 remains the default for backwards compat. To override this behavior, and use the longer limit, set CosmosDbPartitionedStorageOptions.CompatibilityMode to 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