共用方式為


Restore.Partial 屬性

Gets or sets a Boolean property value that specifies whether a partial or full restore operation will be performed.

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

語法

'宣告
Public Property Partial As Boolean 
    Get 
    Set
'用途
Dim instance As Restore 
Dim value As Boolean 

value = instance.Partial

instance.Partial = value
public bool Partial { get; set; }
public:
property bool Partial {
    bool get ();
    void set (bool value);
}
member Partial : bool with get, set
function get Partial () : boolean 
function set Partial (value : boolean)

屬性值

型別:System.Boolean
A Boolean value that indicates whether this is a full or partial restore operation.If True, the restore operation is a partial restore. Otherwise, False (default).

範例

The following code example sets the restore instance to perform a partial operation.

VB

Dim rs As Restore
rs = New Restore
rs.Partial = true

PowerShell

$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.Partial = $TRUE

請參閱

參考

Restore 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

RESTORE (Transact-SQL)

SQL Server 資料庫的備份與還原