Database.RecoveryModel Property

Gets or sets the recovery model for the database.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute> _
Public Property RecoveryModel As RecoveryModel
    Get
    Set
'Usage
Dim instance As Database
Dim value As RecoveryModel

value = instance.RecoveryModel

instance.RecoveryModel = value
[SfcPropertyAttribute]
public RecoveryModel RecoveryModel { get; set; }
[SfcPropertyAttribute]
public:
virtual property RecoveryModel RecoveryModel {
    RecoveryModel get () sealed;
    void set (RecoveryModel value) sealed;
}
[<SfcPropertyAttribute>]
abstract RecoveryModel : RecoveryModel with get, set
[<SfcPropertyAttribute>]
override RecoveryModel : RecoveryModel with get, set
final function get RecoveryModel () : RecoveryModel
final function set RecoveryModel (value : RecoveryModel)

Property Value

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

Implements

IDatabaseOptions.RecoveryModel