Share via


ClearSuspectPageTable 方法

Deletes entries in the suspect page table.

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

語法

'宣告
Public Sub ClearSuspectPageTable ( _
    srv As Server _
)
'用途
Dim instance As Restore
Dim srv As Server

instance.ClearSuspectPageTable(srv)
public void ClearSuspectPageTable(
    Server srv
)
public:
void ClearSuspectPageTable(
    Server^ srv
)
member ClearSuspectPageTable : 
        srv:Server -> unit 
public function ClearSuspectPageTable(
    srv : Server
)

參數

範例

The following code example deletes all entries in the restore suspect page table.

VB

Dim srv As Server
srv = New Server
Dim rs As Restore
rs = New Restore
rs.ClearSuspectPageTable(srv)

PowerShell

$srv = new-object Microsoft.SqlServer.Management.Smo.Server("(local)")
$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.ClearSuspectPageTable($srv)