共用方式為


BackupDevice.BackupDeviceType 屬性

Gets or sets the type of backup device of the backup device.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
Public Property BackupDeviceType As BackupDeviceType 
    Get 
    Set
'用途
Dim instance As BackupDevice 
Dim value As BackupDeviceType 

value = instance.BackupDeviceType

instance.BackupDeviceType = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
public BackupDeviceType BackupDeviceType { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
public:
property BackupDeviceType BackupDeviceType {
    BackupDeviceType get ();
    void set (BackupDeviceType value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
member BackupDeviceType : BackupDeviceType with get, set
function get BackupDeviceType () : BackupDeviceType 
function set BackupDeviceType (value : BackupDeviceType)

屬性值

型別:Microsoft.SqlServer.Management.Smo.BackupDeviceType
A BackupDeviceType object that specifies the device type of the backup device. By default, the value is not specified.

範例

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

請參閱

參考

BackupDevice 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

備份裝置 (SQL Server)