Version

NormalizeEscapement Method

This method has the same effect as calling UnEscapeString and then calling EscapeString on the specified text. This ensures that the text is minimally escaped.
Syntax
'Declaration
 
Public Function NormalizeEscapement( _
   ByVal text As String, _
   ByVal withinQuotes As Boolean _
) As String
public string NormalizeEscapement( 
   string text,
   bool withinQuotes
)

Parameters

text
The text that should be normalized.
withinQuotes
Whether the text is going to be enclosed in double quotes. If true then only escapes characters that need to be escaped in double quotes.

Return Value

A string that has been unescaped and then escaped.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also