共用方式為


BackupDeviceItem 建構函式 (String, DeviceType)

Initializes a new instance of the [BackupDeviceItem] class that has the specified name and kind of device.

命名空間:  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
    A String value that specifies the name of the backup device item.

範例

備份及還原資料庫和交易記錄

請參閱

參考

BackupDeviceItem 類別

BackupDeviceItem 多載

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

BACKUP (Transact-SQL)