Identifier.EncodeIdentifier Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
EncodeIdentifier(String) |
Adds the escape characters. |
EncodeIdentifier(String, QuoteType) |
Adds the escape characters. |
EncodeIdentifier(String)
Adds the escape characters.
public static string EncodeIdentifier (string identifier);
static member EncodeIdentifier : string -> string
Public Shared Function EncodeIdentifier (identifier As String) As String
Parameters
- identifier
- String
The identifier which does not have escape characters.
Returns
The escaped identifier.
Applies to
EncodeIdentifier(String, QuoteType)
Adds the escape characters.
public static string EncodeIdentifier (string identifier, Microsoft.SqlServer.TransactSql.ScriptDom.QuoteType quoteType);
static member EncodeIdentifier : string * Microsoft.SqlServer.TransactSql.ScriptDom.QuoteType -> string
Public Shared Function EncodeIdentifier (identifier As String, quoteType As QuoteType) As String
Parameters
- identifier
- String
The identifier which does not have escape characters.
- quoteType
- QuoteType
The quote type
Returns
The escaped identifier.