SqlCeCommandBuilder.QuoteIdentifier Method

Returns the correct quoted form of the specified identifier.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

Syntax

'Declaration
Public Overrides Function QuoteIdentifier ( _
    unquotedIdentifier As String _
) As String
'Usage
Dim instance As SqlCeCommandBuilder
Dim unquotedIdentifier As String
Dim returnValue As String

returnValue = instance.QuoteIdentifier(unquotedIdentifier)
public override string QuoteIdentifier(
    string unquotedIdentifier
)
public:
virtual String^ QuoteIdentifier(
    String^ unquotedIdentifier
) override
abstract QuoteIdentifier : 
        unquotedIdentifier:string -> string 
override QuoteIdentifier : 
        unquotedIdentifier:string -> string 
public override function QuoteIdentifier(
    unquotedIdentifier : String
) : String

Parameters

  • unquotedIdentifier
    Type: System.String
    The identifier for which to return the quoted form.

Return Value

Type: System.String
The quoted form of the identifier.

Exceptions

Exception Condition
ArgumentNullException

unquotedIdentifier is nulla null reference (Nothing in Visual Basic).

Remarks

Embedded quotes within the identifier are correctly escaped.

See Also

Reference

SqlCeCommandBuilder Class

System.Data.SqlServerCe Namespace