BackupDeviceList.AddDevice 方法

Adds device type with the specified name to the list.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.SmoExtended(在 Microsoft.SqlServer.SmoExtended.dll 中)

语法

声明
Public Sub AddDevice ( _
    name As String, _
    deviceType As DeviceType _
)
用法
Dim instance As BackupDeviceList 
Dim name As String 
Dim deviceType As DeviceType

instance.AddDevice(name, deviceType)
public void AddDevice(
    string name,
    DeviceType deviceType
)
public:
void AddDevice(
    String^ name, 
    DeviceType deviceType
)
member AddDevice : 
        name:string * 
        deviceType:DeviceType -> unit
public function AddDevice(
    name : String, 
    deviceType : DeviceType
)

参数

示例

备份和还原数据库和事务日志

请参阅

参考

BackupDeviceList 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

BACKUP (Transact-SQL)