Partilhar via


Método AddDevice

Adds device type with the specified name to the list.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.SmoExtended (em Microsoft.SqlServer.SmoExtended.dll)

Sintaxe

'Declaração
Public Sub AddDevice ( _
    name As String, _
    deviceType As DeviceType _
)
'Uso
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
)

Parâmetros