指定した名前とデバイスの種類を持つ [BackupDeviceItem] クラスの新しいインスタンスを初期化します。
名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.SmoExtended (Microsoft.SqlServer.SmoExtended.dll)
構文
'宣言
Public Sub New ( _
name As String, _
deviceType As DeviceType _
)
'使用
Dim name As String
Dim deviceType As DeviceType
Dim instance As New BackupDeviceItem(name, deviceType)
public BackupDeviceItem(
string name,
DeviceType deviceType
)
public:
BackupDeviceItem(
String^ name,
DeviceType deviceType
)
new :
name:string *
deviceType:DeviceType -> BackupDeviceItem
public function BackupDeviceItem(
name : String,
deviceType : DeviceType
)
パラメーター
- name
型: System.String
バックアップ デバイス アイテムの名前を示す String 値です。
- deviceType
型: Microsoft.SqlServer.Management.Smo.DeviceType
バックアップ デバイスの種類を示す [BackupDeviceType] オブジェクトの値です。
使用例
データベースおよびトランザクション ログのバックアップと復元
関連項目
参照
Microsoft.SqlServer.Management.Smo 名前空間