Export (0) Print
Expand All

EscapeSequence Class

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


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

public class EscapeSequence

The EscapeSequence type exposes the following members.

Public methodEquals (Inherited from Object.)
Public methodEscapeReturns the specified string with any necessary escape characters added.
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberIdentifyEscapeSequenceIdentifies the escape sequence used in the specified string.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberRequiresEscapingTests a string to see if it requires escaping to be a valid SQL Server token.
Public methodToString (Inherited from Object.)
Public methodUnescapeRemoves any escape characters from the specified string.
Public methodStatic memberUnescapeIdentifierTests the specified string against each escape sequence and returns the unescaped string.
Public methodStatic memberUnescapeLiteralTests the specified string literal against each escape sequence and returns the unescaped string literal.

Public fieldStatic memberBracketedEscapeSequenceRepresents an escape sequence that uses square brackets as delimiters.
Public fieldStatic memberDoubleQuotedEscapeSequenceRepresents an escape sequence that uses double quotes as delimiters.
Public fieldStatic memberSingleQuotedEscapeSequenceRepresents an escape sequence that uses single quotes as delimiters.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft