Database.RecoveryModel 属性

Gets or sets the recovery model for the database.

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

语法

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

value = instance.RecoveryModel

instance.RecoveryModel = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)]
public RecoveryModel RecoveryModel { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase|SfcPropertyFlags::Deploy)]
public:
virtual property RecoveryModel RecoveryModel {
    RecoveryModel get () sealed;
    void set (RecoveryModel value) sealed;
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)>]
abstract RecoveryModel : RecoveryModel with get, set
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase|SfcPropertyFlags.Deploy)>]
override RecoveryModel : RecoveryModel with get, set
final function get RecoveryModel () : RecoveryModel 
final 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.

实现

IDatabaseOptions.RecoveryModel

请参阅

参考

Database 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

恢复模式 (SQL Server)