SqlFunctions.QuoteName Method

 

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticQuoteName(String)

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.

System_CAPS_pubmethodSystem_CAPS_staticQuoteName(String, String)

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.


SqlFunctions.QuoteName Method (String)

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "stringArg")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", 
	MessageId = "string")]
[DbFunctionAttribute("SqlServer", "QUOTENAME")]
public static string QuoteName(
	string stringArg
)

Parameters

stringArg
Type: System.String

The expression that quote characters will be added to.

Return Value

Type: System.String

The original string with brackets added.


SqlFunctions.QuoteName Method (String, String)

Returns a Unicode string with the delimiters added to make the input string a valid Microsoft SQL Server delimited identifier.

[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "quoteCharacter")]
[SuppressMessageAttribute("Microsoft.Naming", "CA1720:IdentifiersShouldNotContainTypeNames", 
	MessageId = "string")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "stringArg")]
[DbFunctionAttribute("SqlServer", "QUOTENAME")]
public static string QuoteName(
	string stringArg,
	string quoteCharacter
)

Parameters

stringArg
Type: System.String

The expression that quote characters will be added to.

quoteCharacter
Type: System.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.

Return Value

Type: System.String

The original string with the specified quote characters added.