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 | |
---|---|---|
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. |
Top
Fields
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. |
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.