Upraviť

Zdieľať cez


OdbcCommandBuilder.QuoteIdentifier Method

Definition

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.

Overloads

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.

QuoteIdentifier(String, OdbcConnection)

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.

QuoteIdentifier(String)

Source:
OdbcCommandBuilder.cs
Source:
OdbcCommandBuilder.cs

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

Parameters

unquotedIdentifier
String

The original unquoted identifier.

Returns

The quoted version of the identifier. Embedded quotes within the identifier are correctly escaped.

See also

Applies to

QuoteIdentifier(String, OdbcConnection)

Source:
OdbcCommandBuilder.cs
Source:
OdbcCommandBuilder.cs

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:
 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

Parameters

unquotedIdentifier
String

The original unquoted identifier.

connection
OdbcConnection

When a connection is passed, causes the managed wrapper to get the quote character from the ODBC driver, calling SQLGetInfo(SQL_IDENTIFIER_QUOTE_CHAR). When no connection is passed, the string is quoted using values from QuotePrefix and QuoteSuffix.

Returns

The quoted version of the identifier. Embedded quotes within the identifier are correctly escaped.

See also

Applies to