OdbcCommandBuilder.QuoteIdentifier 方法

定义

给定了具有正确的目录大小写设置且不带引号的标识符时,返回该标识符的正确的带引号形式。 这包括正确地转义该标识符中的任何嵌入引号。

重载

QuoteIdentifier(String)

给定了具有正确的目录大小写设置且不带引号的标识符时,返回该标识符的正确的带引号形式。 这包括正确地转义该标识符中的任何嵌入引号。

QuoteIdentifier(String, OdbcConnection)

给定了具有正确的目录大小写设置且不带引号的标识符时,返回该标识符的正确的带引号形式。 这包括正确地转义该标识符中的任何嵌入引号。

QuoteIdentifier(String)

Source:
OdbcCommandBuilder.cs
Source:
OdbcCommandBuilder.cs
Source:
OdbcCommandBuilder.cs

给定了具有正确的目录大小写设置且不带引号的标识符时,返回该标识符的正确的带引号形式。 这包括正确地转义该标识符中的任何嵌入引号。

public:
 override System::String ^ QuoteIdentifier(System::String ^ unquotedIdentifier);
public override string QuoteIdentifier (string unquotedIdentifier);
override this.QuoteIdentifier : string -> string
Public Overrides Function QuoteIdentifier (unquotedIdentifier As String) As String

参数

unquotedIdentifier
String

不带引号的原始标识符。

返回

带引号的标识符版本。 标识符内的嵌入引号被正确地转义。

另请参阅

适用于

QuoteIdentifier(String, OdbcConnection)

Source:
OdbcCommandBuilder.cs
Source:
OdbcCommandBuilder.cs
Source:
OdbcCommandBuilder.cs

给定了具有正确的目录大小写设置且不带引号的标识符时,返回该标识符的正确的带引号形式。 这包括正确地转义该标识符中的任何嵌入引号。

public:
 System::String ^ QuoteIdentifier(System::String ^ unquotedIdentifier, System::Data::Odbc::OdbcConnection ^ connection);
public string QuoteIdentifier (string unquotedIdentifier, System.Data.Odbc.OdbcConnection connection);
public string QuoteIdentifier (string unquotedIdentifier, System.Data.Odbc.OdbcConnection? connection);
override this.QuoteIdentifier : string * System.Data.Odbc.OdbcConnection -> string
Public Function QuoteIdentifier (unquotedIdentifier As String, connection As OdbcConnection) As String

参数

unquotedIdentifier
String

不带引号的原始标识符。

connection
OdbcConnection

当连接是通过时,会导致托管包装从获取 ODBC 驱动程序的引号字符,调用 SQLGetInfo (SQL_IDENTIFIER_QUOTE_CHAR)。 如果连接未通过时,使用从 QuotePrefixQuoteSuffix的值中引用该字符串。

返回

带引号的标识符版本。 标识符内的嵌入引号被正确地转义。

另请参阅

适用于