SqlFunctions.QuoteName 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
QuoteName(String) |
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier. |
QuoteName(String, String) |
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier. |
QuoteName(String)
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.
[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
Parameters
- stringArg
- String
The expression that quote characters will be added to.
Returns
The original string with brackets added.
- Attributes
Applies to
QuoteName(String, String)
Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.
[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
Parameters
- stringArg
- String
The expression that quote characters will be added to.
- quoteCharacter
- String
The one-character string to use as the delimiter. It can be a single quotation mark ( ' ), a left or right bracket ( [ ] ), or a double quotation mark ( " ). If quote_character is not specified, brackets are used.
Returns
The original string with the specified quote characters added.
- Attributes
Applies to
Entity Framework