IDatabaseOptions.RecoveryModel 属性

Gets or sets the recovery model for the database.

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

语法

声明
<DisplayDescriptionKeyAttribute("Database_RecoveryModelDesc")> _
<DisplayNameKeyAttribute("Database_RecoveryModelName")> _
Property RecoveryModel As RecoveryModel 
    Get 
    Set
用法
Dim instance As IDatabaseOptions 
Dim value As RecoveryModel 

value = instance.RecoveryModel

instance.RecoveryModel = value
[DisplayDescriptionKeyAttribute("Database_RecoveryModelDesc")]
[DisplayNameKeyAttribute("Database_RecoveryModelName")]
RecoveryModel RecoveryModel { get; set; }
[DisplayDescriptionKeyAttribute(L"Database_RecoveryModelDesc")]
[DisplayNameKeyAttribute(L"Database_RecoveryModelName")]
property RecoveryModel RecoveryModel {
    RecoveryModel get ();
    void set (RecoveryModel value);
}
[<DisplayDescriptionKeyAttribute("Database_RecoveryModelDesc")>]
[<DisplayNameKeyAttribute("Database_RecoveryModelName")>]
abstract RecoveryModel : RecoveryModel with get, set
function get RecoveryModel () : RecoveryModel 
function set RecoveryModel (value : RecoveryModel)

属性值

类型:Microsoft.SqlServer.Management.Smo.RecoveryModel
A RecoveryModel object value that specifies the recovery model that is currently in operation on the database.

示例

How to Get and Set a Property in Visual Basic .NET

请参阅

参考

IDatabaseOptions 接口

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

设置属性

数据库选项