共用方式為


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 命名空間

其他資源

設定屬性

資料庫選項