SqlCeCommandBuilder.QuoteSuffix Property
Gets or sets the ending 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 QuoteSuffix As String
Get
Set
'Usage
Dim instance As SqlCeCommandBuilder
Dim value As String
value = instance.QuoteSuffix
instance.QuoteSuffix = value
public override string QuoteSuffix { get; set; }
public:
virtual property String^ QuoteSuffix {
String^ get () override;
void set (String^ value) override;
}
abstract QuoteSuffix : string with get, set
override QuoteSuffix : string with get, set
override function get QuoteSuffix () : String
override function set QuoteSuffix (value : String)
Property Value
Type: System.String
The ending 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 QuoteSuffix and QuotePrefix 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.