SqlCommandBuilder.QuoteIdentifier(String) 方法

定义

给定了具有正确的目录大小写设置且不带引号的标识符时,返回该标识符的正确的带引号形式。Given an unquoted identifier in the correct catalog case, returns the correct quoted form of that identifier. 这包括正确地转义该标识符中的任何嵌入引号。This includes correctly escaping any embedded quotes in the identifier.

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

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

返回

String

带引号的标识符版本。The quoted version of the identifier. 标识符内的嵌入引号被正确地转义。Embedded quotes within the identifier are correctly escaped.

适用于