語言

SqlFunctions.QuoteName 方法

定義

多載

名稱 Description
QuoteName(String)

回傳一個 Unicode 字串,並加上分隔符,使輸入字串成為有效的 Microsoft SQL Server 分隔識別碼。

QuoteName(String, String)

回傳一個 Unicode 字串,並加上分隔符,使輸入字串成為有效的 Microsoft SQL Server 分隔識別碼。

QuoteName(String)

回傳一個 Unicode 字串,並加上分隔符,使輸入字串成為有效的 Microsoft SQL Server 分隔識別碼。

[System.Data.Entity.DbFunction("SqlServer", "QUOTENAME")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringArg")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="string")]
public static string QuoteName(string stringArg);
static member QuoteName : string -> string
Public Shared Function QuoteName (stringArg As String) As String

參數

stringArg
String

引用字元會被加上的表達式。

傳回

原本的繩子加上括號。

屬性

適用於

QuoteName(String, String)

回傳一個 Unicode 字串,並加上分隔符,使輸入字串成為有效的 Microsoft SQL Server 分隔識別碼。

[System.Data.Entity.DbFunction("SqlServer", "QUOTENAME")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="quoteCharacter")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", MessageId="string")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId="stringArg")]
public static string QuoteName(string stringArg, string quoteCharacter);
static member QuoteName : string * string -> string
Public Shared Function QuoteName (stringArg As String, quoteCharacter As String) As String

參數

stringArg
String

引用字元會被加上的表達式。

quoteCharacter
String

用一個字元的字串作為分隔符。 它可以是單引號(')、左括號或右括號([ ]),或雙引號(「」)。 若未指定quote_character,則使用括號。

傳回

加入原始字串並加上指定的引號字元。

屬性

適用於