共用方式為


DatabaseOptions.RecoveryModel 屬性

Gets or sets the recovery model for the database.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property RecoveryModel As RecoveryModel 
    Get 
    Set
'用途
Dim instance As DatabaseOptions 
Dim value As RecoveryModel 

value = instance.RecoveryModel

instance.RecoveryModel = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public RecoveryModel RecoveryModel { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property RecoveryModel RecoveryModel {
    RecoveryModel get ();
    void set (RecoveryModel value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member 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.

範例

設定屬性

請參閱

參考

DatabaseOptions 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

資料庫選項