Share via


EscapeSequence Class

Provides methods for escaping and unescaping strings based on the Transact-SQL language.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.SqlParser.Parser.EscapeSequence

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

Syntax

'Declaration
Public Class EscapeSequence
'Usage
Dim instance As EscapeSequence
public class EscapeSequence
public ref class EscapeSequence
type EscapeSequence =  class end
public class EscapeSequence

The EscapeSequence type exposes the following members.

Methods

  Name Description
Public method Equals (Inherited from Object.)
Public method Escape Returns the specified string with any necessary escape characters added.
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public methodStatic member IdentifyEscapeSequence Identifies the escape sequence used in the specified string.
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member RequiresEscaping Tests a string to see if it requires escaping to be a valid SQL Server token.
Public method ToString (Inherited from Object.)
Public method Unescape Removes any escape characters from the specified string.
Public methodStatic member UnescapeIdentifier Tests the specified string against each escape sequence and returns the unescaped string.
Public methodStatic member UnescapeLiteral Tests the specified string literal against each escape sequence and returns the unescaped string literal.

Top

Fields

  Name Description
Public fieldStatic member BracketedEscapeSequence Represents an escape sequence that uses square brackets as delimiters.
Public fieldStatic member DoubleQuotedEscapeSequence Represents an escape sequence that uses double quotes as delimiters.
Public fieldStatic member SingleQuotedEscapeSequence Represents an escape sequence that uses single quotes as delimiters.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.