Identifier.EncodeIdentifier 方法 (String, QuoteType)
Encodes the identifier.
命名空間: Microsoft.SqlServer.TransactSql.ScriptDom
組件: Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)
語法
'宣告
Public Shared Function EncodeIdentifier ( _
identifier As String, _
quoteType As QuoteType _
) As String
'用途
Dim identifier As String
Dim quoteType As QuoteType
Dim returnValue As String
returnValue = Identifier.EncodeIdentifier(identifier, _
quoteType)
public static string EncodeIdentifier(
string identifier,
QuoteType quoteType
)
public:
static String^ EncodeIdentifier(
String^ identifier,
QuoteType quoteType
)
static member EncodeIdentifier :
identifier:string *
quoteType:QuoteType -> string
public static function EncodeIdentifier(
identifier : String,
quoteType : QuoteType
) : String
參數
- identifier
型別:System.String
Specifies the identifier.
- quoteType
型別:Microsoft.SqlServer.TransactSql.ScriptDom.QuoteType
Specifies the quote type.
傳回值
型別:System.String
The encoded identifier.