Util.EscapeString(String, Char) 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.
Escape a particular character in a string
public static string EscapeString (string value, char escapeCharacter);
static member EscapeString : string * char -> string
Public Shared Function EscapeString (value As String, escapeCharacter As Char) As String
Parameters
- value
- String
The string
- escapeCharacter
- Char
The character to escape
Returns
The equivalent string with the character escaped