Partager via


Identifier.EncodeIdentifier Method

Definition

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.

Applies to