Partilhar via


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
'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;
}
/** @property */
public String get_QuotePrefix ()

/** @property */
public void set_QuotePrefix (String value)
public override function get QuotePrefix () : String

public override function set QuotePrefix (value : String)
Not applicable.

Property Value

The beginning character or characters to use. The default is an empty string.

Exceptions

Exception type 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.

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

SqlCeCommandBuilder Class
SqlCeCommandBuilder Members
System.Data.SqlServerCe Namespace