Restore.Action プロパティ
実行する復元の種類を取得します。値の設定も可能です。
名前空間: 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
実行する復元の種類を表す RestoreActionType オブジェクトです。
説明
SQL Server では、1 つのデータベース、テーブルまたはインデックスのデータを含む 1 つ以上のオペレーティング システム ファイル、またはデータベースのトランザクション ログの一部またはすべてを復元できます。
使用例
次のコード例では、Restore クラス インスタンスに関連付けられている復元操作の種類を設定する方法を示します。
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
関連項目
参照
Microsoft.SqlServer.Management.Smo 名前空間