CosmosDbStorage.SanitizeKey(String) Method

Definition

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

String

An appropriately escaped version of the key.

Attributes

Applies to