แก้ไข

แชร์ผ่าน


OleDbCommandBuilder.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, OleDbConnection)

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:
OleDbCommandBuilder.cs
Source:
OleDbCommandBuilder.cs
Source:
OleDbCommandBuilder.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, OleDbConnection)

Source:
OleDbCommandBuilder.cs
Source:
OleDbCommandBuilder.cs
Source:
OleDbCommandBuilder.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::OleDb::OleDbConnection ^ connection);
public string QuoteIdentifier (string unquotedIdentifier, System.Data.OleDb.OleDbConnection? connection);
public string QuoteIdentifier (string unquotedIdentifier, System.Data.OleDb.OleDbConnection connection);
override this.QuoteIdentifier : string * System.Data.OleDb.OleDbConnection -> string
Public Function QuoteIdentifier (unquotedIdentifier As String, connection As OleDbConnection) As String

Parameters

unquotedIdentifier
String

The unquoted identifier to be returned in quoted format.

connection
OleDbConnection

When a connection is passed, causes the managed wrapper to get the quote character from the OLE DB provider. 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