SqlCeCommandBuilder.QuoteSuffix 属性

获取或设置一个或多个结束字符,供指定其名称中包含空格或保留标记等字符的 SQL Server 数据库对象(例如,表或列)时使用。

命名空间: System.Data.SqlServerCe
程序集: System.Data.SqlServerCe(在 system.data.sqlserverce.dll 中)

语法

声明
Public Overrides Property QuoteSuffix As String
用法
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;
}
/** @property */
public String get_QuoteSuffix ()

/** @property */
public void set_QuoteSuffix (String value)
public override function get QuoteSuffix () : String

public override function set QuoteSuffix (value : String)
不适用。

属性值

要使用的结束字符。默认为空字符串。

异常

异常类型 条件

InvalidOperationException

在生成 INSERT、UPDATE 或 DELETE 命令后,不能更改此属性。

备注

使用 QuoteSuffixQuotePrefix 属性指定用于封装对象名的分隔符(如引号)。

备注

虽然在生成“插入”、“更新”或“删除”操作后不能更改 QuotePrefixQuoteSuffix 属性,但可以在调用数据适配器的更新方法后更改它们的设置。

平台

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Windows Vista、Microsoft Windows XP SP2 和 Windows Server 2003 SP1 支持 Microsoft .NET Framework 3.0。

版本信息

.NET Framework

受以下版本支持:3.0

.NET Compact Framework

受以下版本支持:2.0、1.0

请参见

参考

SqlCeCommandBuilder 类
SqlCeCommandBuilder 成员
System.Data.SqlServerCe 命名空间