Remarque
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de vous connecter ou de modifier des répertoires.
L’accès à cette page nécessite une autorisation. Vous pouvez essayer de modifier des répertoires.
Adds device type with the specified name to the list.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.SmoExtended (en Microsoft.SqlServer.SmoExtended.dll)
Syntaxe
'Déclaration
Public Sub AddDevice ( _
name As String, _
deviceType As DeviceType _
)
'Utilisation
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
)
Paramètres
- name
Type : System.String
String value that is used to specify the name of the device that is being added to the BackupDeviceList object.
- deviceType
Type : Microsoft.SqlServer.Management.Smo.DeviceType
DeviceType object value that specifies the type of device to add to the BackupDeviceList object.
Exemples
Sauvegarde et restauration des bases de données et journaux de transactions
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo