CosmosDbPartitionedStorageOptions.KeySuffix 属性

定义

获取或设置要添加到每个键的后缀。 EscapeKey(String).

注意: CompatibilityMode 必须设置为“false”才能使用 KeySuffix。 使用 KeySuffix 时,不会截断密钥,但如果密钥长度超过 CosmosDb 允许的长度,则会引发异常。

public string KeySuffix { get; set; }
member this.KeySuffix : string with get, set
Public Property KeySuffix As String

属性值

仅包含有效 CosmosDb 键字符的字符串。 (例如:“\”、“?”、“/”、“#”、“*”) 。

适用于