EscapeSequence Class
SQL Server 2012
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)
The EscapeSequence type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Escape | Returns the specified string with any necessary escape characters added. |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() ![]() | IdentifyEscapeSequence | Identifies the escape sequence used in the specified string. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() ![]() | RequiresEscaping | Tests a string to see if it requires escaping to be a valid SQL Server token. |
![]() | ToString | (Inherited from Object.) |
![]() | Unescape | Removes any escape characters from the specified string. |
![]() ![]() | UnescapeIdentifier | Tests the specified string against each escape sequence and returns the unescaped string. |
![]() ![]() | UnescapeLiteral | Tests the specified string literal against each escape sequence and returns the unescaped string literal. |
| Name | Description | |
|---|---|---|
![]() ![]() | BracketedEscapeSequence | Represents an escape sequence that uses square brackets as delimiters. |
![]() ![]() | DoubleQuotedEscapeSequence | Represents an escape sequence that uses double quotes as delimiters. |
![]() ![]() | SingleQuotedEscapeSequence | Represents an escape sequence that uses single quotes as delimiters. |

