Свойство Action
Gets or sets the type of restore to be performed.
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.SmoExtended (в Microsoft.SqlServer.SmoExtended.dll)
Синтаксис
'Декларация
Public Property Action As RestoreActionType
Get
Set
'Применение
Dim instance As Restore
Dim value As RestoreActionType
value = instance.Action
instance.Action = value
public RestoreActionType Action { get; set; }
public:
property RestoreActionType Action {
RestoreActionType get ();
void set (RestoreActionType value);
}
member Action : RestoreActionType with get, set
function get Action () : RestoreActionType
function set Action (value : RestoreActionType)
Значение свойства
Тип: Microsoft.SqlServer.Management.Smo. . :: . .RestoreActionType
A RestoreActionType object representing the type of restore to be performed.
Замечания
SQL Server can restore a database, one or more operating system files containing table or index data, or part of or all the transaction log of a database.
Примеры
The following code example shows how to set the type of restore action associated with the Restore class instance.
VB
Dim rs As Restore
rs = New Restore
rs.Action = RestoreActionType.Files
PowerShell
$rs = new-object Microsoft.SqlServer.Management.Smo.Restore
$rs.Action = [Microsoft.SqlServer.Management.Smo.RestoreActionType]::Files
См. также