SqlCommandBuilder.QuoteSuffix 属性
定义
获取或设置在指定其名称中包含空格或保留标记等字符的 SQL Server 数据库对象(如表或列)时使用的一个或多个结束字符。Gets or sets the ending character or characters to use when specifying SQL Server database objects, such as tables or columns, whose names contain characters such as spaces or reserved tokens.
public:
virtual property System::String ^ QuoteSuffix { System::String ^ get(); void set(System::String ^ value); };
public:
property System::String ^ QuoteSuffix { System::String ^ get(); void set(System::String ^ value); };
public override string QuoteSuffix { get; set; }
[System.ComponentModel.Browsable(false)]
[System.Data.DataSysDescription("SqlCommandBuilder_QuoteSuffix")]
public string QuoteSuffix { get; set; }
[System.ComponentModel.Browsable(false)]
public override string QuoteSuffix { get; set; }
member this.QuoteSuffix : string with get, set
[<System.ComponentModel.Browsable(false)>]
[<System.Data.DataSysDescription("SqlCommandBuilder_QuoteSuffix")>]
member this.QuoteSuffix : string with get, set
[<System.ComponentModel.Browsable(false)>]
member this.QuoteSuffix : string with get, set
Public Overrides Property QuoteSuffix As String
Public Property QuoteSuffix As String
属性值
要使用的结束字符。The ending character or characters to use. 默认值为一个空字符串。The default is an empty string.
- 属性
例外
当生成 Insert、Update 或 Delete 命令后,不能更改此属性。This property cannot be changed after an insert, update, or delete command has been generated.
注解
备注
虽然在 QuotePrefix QuoteSuffix 生成插入、更新或删除操作后无法更改或属性,但你可以在调用 DataAdapter 的方法之后更改其设置 Update 。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 DataAdapter.