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.
'Declaration
Public Function NormalizeEscapement( _
ByVal As String, _
ByVal As Boolean _
) As String
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.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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