OdbcCommandBuilder::QuoteIdentifier Method (String^, OdbcConnection^)
.NET Framework (current version)
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.
Assembly: System.Data (in System.Data.dll)
Parameters
- unquotedIdentifier
-
Type:
System::String^
The original unquoted identifier.
- connection
-
Type:
System.Data.Odbc::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.
Return Value
Type: System::String^The quoted version of the identifier. Embedded quotes within the identifier are correctly escaped.
.NET Framework
Available since 2.0
Available since 2.0
Show: