DbCommandBuilder.QuoteIdentifier(String) 方法

定义

以正确的目录大小写给定一个不带引号的标识符,返回该标识符的带引号的正确形式,包括正确转义该标识符中嵌入的任何引号。Given an unquoted identifier in the correct catalog case, returns the correct quoted form of that identifier, including properly escaping any embedded quotes in the identifier.

public:
 virtual System::String ^ QuoteIdentifier(System::String ^ unquotedIdentifier);
public virtual string QuoteIdentifier (string unquotedIdentifier);
abstract member QuoteIdentifier : string -> string
override this.QuoteIdentifier : string -> string
Public Overridable Function QuoteIdentifier (unquotedIdentifier As String) As String

参数

unquotedIdentifier
String

不带引号的原始标识符。The original unquoted identifier.

返回

String

带引号的标识符版本。The quoted version of the identifier. 该标识符中嵌入的引号已正确转义。Embedded quotes within the identifier are properly escaped.

适用于