SqlCeCommandBuilder.QuotePrefix Property

Gets or sets the beginning character or characters to use when specifying SQL Server database objects (for example, tables or columns) whose names contain characters such as spaces or reserved tokens.

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

Syntax

'Declaration
Public Overrides Property QuotePrefix As String
    Get
    Set
'Usage
Dim instance As SqlCeCommandBuilder
Dim value As String

value = instance.QuotePrefix

instance.QuotePrefix = value
public override string QuotePrefix { get; set; }
public:
virtual property String^ QuotePrefix {
    String^ get () override;
    void set (String^ value) override;
}
abstract QuotePrefix : string with get, set
override QuotePrefix : string with get, set
override function get QuotePrefix () : String
override function set QuotePrefix (value : String)

Property Value

Type: System.String
The beginning character or characters to use. The default is an empty string.

Exceptions

Exception Condition
InvalidOperationException

This property cannot be changed after an INSERT, UPDATE, or DELETE command has been generated.

Remarks

Use the QuotePrefix and QuoteSuffix properties to specify delimiters, such as quotes, to encapsulate the object name.

Note

Although you cannot change the QuotePrefix or QuoteSuffix properties after an INSERT, UPDATE, or DELETE operation has been generated, you can change their settings after calling the update method of a data adapter.

See Also

Reference

SqlCeCommandBuilder Class

System.Data.SqlServerCe Namespace