CosmosDbStorage.SanitizeKey(String) Method
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.
Caution
Replaced by CosmosDBKeyEscape.EscapeKey.
Escapes a given key to be compatible for use with Cosmos DB.
[System.Obsolete("Replaced by CosmosDBKeyEscape.EscapeKey.")]
public static string SanitizeKey (string key);
[<System.Obsolete("Replaced by CosmosDBKeyEscape.EscapeKey.")>]
static member SanitizeKey : string -> string
Public Shared Function SanitizeKey (key As String) As String
Parameters
- key
- String
The key to be sanitized (escaped).
Returns
An appropriately escaped version of the key.
- Attributes