AnsiWarningsEnabled 属性

获取或设置 Boolean ANSI_WARNING_ENABLED 属性值。

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase Or SfcPropertyFlags.Design)> _
Public Property AnsiWarningsEnabled As Boolean
    Get
    Set
用法
Dim instance As Database
Dim value As Boolean

value = instance.AnsiWarningsEnabled

instance.AnsiWarningsEnabled = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)]
public bool AnsiWarningsEnabled { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Design)]
public:
virtual property bool AnsiWarningsEnabled {
    bool get () sealed;
    void set (bool value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
abstract AnsiWarningsEnabled : bool with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Design)>]
override AnsiWarningsEnabled : bool with get, set
final function get AnsiWarningsEnabled () : boolean
final function set AnsiWarningsEnabled (value : boolean)

属性值

类型:System. . :: . .Boolean
一个 Boolean 值,该值指定 AnsiWarningsEnabled 数据库选项是否处于活动状态。如果为 True,则当在语句中遇到 Null 值时,将发出警告。如果为 False(默认值),则当在语句中遇到 Null 值时,将不发出警告。

实现

IDatabaseOptions. . :: . .AnsiWarningsEnabled