Export (0) Print
Expand All

OracleCommandBuilder.QuotePrefix Property

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

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

[Visual Basic]
Public Property QuotePrefix As String
[C#]
public string QuotePrefix {get; set;}
[C++]
public: __property String* get_QuotePrefix();
public: __property void set_QuotePrefix(String*);
[JScript]
public function get QuotePrefix() : String;
public function set QuotePrefix(String);

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

Some databases may contain objects whose names include characters such as spaces, commas, and semicolons. To accommodate this, use the QuotePrefix and QuoteSuffix properties to specify delimiters, such as a left and right bracket, that will encapsulate the object name.

Note   Although you cannot change the QuotePrefix or QuoteSuffix properties after an insert, update, or delete command has been generated, you can change their settings after calling the Update method of an OracleDataAdapter.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleCommandBuilder Class | OracleCommandBuilder Members | System.Data.OracleClient Namespace

Show:
© 2014 Microsoft