Share via


EscapeSequence.UnescapeLiteral Method

Tests the specified string literal against each escape sequence and returns the unescaped string literal.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Parser
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Shared Function UnescapeLiteral ( _
    value As String, _
    <OutAttribute> ByRef isUnicode As Boolean _
) As String
'Usage
Dim value As String
Dim isUnicode As Boolean
Dim returnValue As String

returnValue = EscapeSequence.UnescapeLiteral(value, _
    isUnicode)
public static string UnescapeLiteral(
    string value,
    out bool isUnicode
)
public:
static String^ UnescapeLiteral(
    String^ value, 
    [OutAttribute] bool% isUnicode
)
static member UnescapeLiteral : 
        value:string * 
        isUnicode:bool byref -> string 
public static function UnescapeLiteral(
    value : String, 
    isUnicode : boolean
) : String

Parameters

  • isUnicode
    Type: System.Boolean%
    true if the string literal is a Unicode string; otherwise, false.

Return Value

Type: System.String
The specified string with the escape characters removed.

Exceptions

Exception Condition
ArgumentNullException

The specified string is a null reference.