共用方式為


Restore.StopBeforeMarkName 屬性

Gets or sets the mark name to be used in conjunction with the date specified by StopBeforeMarkAfterDate to determine the stopping point of the recovery operation.

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

語法

'宣告
Public Property StopBeforeMarkName As String 
    Get 
    Set
'用途
Dim instance As Restore 
Dim value As String 

value = instance.StopBeforeMarkName

instance.StopBeforeMarkName = value
public string StopBeforeMarkName { get; set; }
public:
property String^ StopBeforeMarkName {
    String^ get ();
    void set (String^ value);
}
member StopBeforeMarkName : string with get, set
function get StopBeforeMarkName () : String 
function set StopBeforeMarkName (value : String)

屬性值

型別:System.String
A string that specifies the mark name.

備註

Specifies recovery to the first mark matching the name specified in StopBeforeMarkName that occurs before the specified time. Recovery does not include the transaction that contains the mark. If the StopBeforeMarkName value is not set, recovery stops at the first mark with the specified name.

範例

The following code example sets a transaction mark name before which the restore operation halts.

VB

Dim rs As Restore
rs = New Restore
rs.StopBeforeMarkName = "TransactionMark"

PowerShell

$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.StopBeforeMarkName = "TransactionMark"

請參閱

參考

Restore 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

RESTORE (Transact-SQL)

SQL Server 資料庫的備份與還原