BackupDeviceList.AddDevice Method
Adds device type with the specified name to the list. This method is not CLS-compliant.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in microsoft.sqlserver.smoextended.dll)
Syntax
'Deklaracja
Public Sub AddDevice ( _
name As String, _
deviceType As DeviceType _
)
public void AddDevice (
string name,
DeviceType deviceType
)
public:
void AddDevice (
String^ name,
DeviceType deviceType
)
public void AddDevice (
String name,
DeviceType deviceType
)
public function AddDevice (
name : String,
deviceType : DeviceType
)
Parameters
- name
String value that is used to specify the name of the device that is being added to the BackupDeviceList object.
- deviceType
DeviceType object value that specifies the type of device to add to the BackupDeviceList object.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
See Also
Reference
BackupDeviceList Class
BackupDeviceList Members
Microsoft.SqlServer.Management.Smo Namespace