Свойство Restore.Offset
Gets or sets the array of page addresses to be restored.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)
Синтаксис
'Декларация
Public Property Offset As Long()
Get
Set
'Применение
Dim instance As Restore
Dim value As Long()
value = instance.Offset
instance.Offset = value
public long[] Offset { get; set; }
public:
property array<long long>^ Offset {
array<long long>^ get ();
void set (array<long long>^ value);
}
member Offset : int64[] with get, set
function get Offset () : long[]
function set Offset (value : long[])
Значение свойства
Тип: array<System.Int64[]
An Int64 array value that specifies the page addresses of the pages to be restored.
Примеры
The following code example demonstrates how to specify the page addresses to be saved during a restore operation.
VB
Dim rs As Restore
rs = New Restore
rs.Action = RestoreActionType.OnlinePage
Dim a() As Integer = {4,5,6}
rs.Offset = a
PowerShell
$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.Action = [Microsoft.SqlServer.Management.Smo.RestoreActionType]::OnlinePage
$a = @(4, 5, 6)
$rs.Offset = $a
См. также
Справочник
Пространство имен Microsoft.SqlServer.Management.Smo
Другие ресурсы
Резервное копирование и восстановление баз данных SQL Server