GetDevicesScript-Methode
Gets the script that is used to create devices.
Diese API ist nicht mit CLS kompatibel. Die CLS-kompatible Alternative ist .
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Protected Sub GetDevicesScript ( _
query As StringBuilder, _
devices As BackupDeviceList, _
targetVersion As ServerVersion _
)
'Usage
Dim query As StringBuilder
Dim devices As BackupDeviceList
Dim targetVersion As ServerVersion
Me.GetDevicesScript(query, devices, _
targetVersion)
[CLSCompliantAttribute(false)]
protected void GetDevicesScript(
StringBuilder query,
BackupDeviceList devices,
ServerVersion targetVersion
)
[CLSCompliantAttribute(false)]
protected:
void GetDevicesScript(
StringBuilder^ query,
BackupDeviceList^ devices,
ServerVersion^ targetVersion
)
[<CLSCompliantAttribute(false)>]
member GetDevicesScript :
query:StringBuilder *
devices:BackupDeviceList *
targetVersion:ServerVersion -> unit
protected function GetDevicesScript(
query : StringBuilder,
devices : BackupDeviceList,
targetVersion : ServerVersion
)
Parameter
- query
Typ: System.Text. . :: . .StringBuilder
A StringBuilder value that specifies the Transact-SQL query.
- devices
Typ: Microsoft.SqlServer.Management.Smo. . :: . .BackupDeviceList
A BackupDeviceItem object value that specifies the devices associated with the backup or restore operation.
- targetVersion
Typ: Microsoft.SqlServer.Management.Common. . :: . .ServerVersion
A ServerVersion object that specifies the version of the instance of SQL Server on which the devices are to be re-created.