Método Upgrade
Observação: essa API está obsoleta.
Atualiza o tipo de DAC de uma instância de DAC para a versão do tipo de DAC especificado extraído de um pacote de DAC.
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (em Microsoft.SqlServer.Management.Dac.dll)
Sintaxe
'Declaração
<ObsoleteAttribute("Please use the method named IncrementalUpgrade on this same class.")> _
Public Function Upgrade ( _
currentInstanceName As String, _
dacTypeToBeDeployed As DacType, _
upgradeOptions As DacUpgradeOptions _
) As DacUpgradeResult
'Uso
Dim instance As DacStore
Dim currentInstanceName As String
Dim dacTypeToBeDeployed As DacType
Dim upgradeOptions As DacUpgradeOptions
Dim returnValue As DacUpgradeResult
returnValue = instance.Upgrade(currentInstanceName, _
dacTypeToBeDeployed, upgradeOptions)
[ObsoleteAttribute("Please use the method named IncrementalUpgrade on this same class.")]
public DacUpgradeResult Upgrade(
string currentInstanceName,
DacType dacTypeToBeDeployed,
DacUpgradeOptions upgradeOptions
)
[ObsoleteAttribute(L"Please use the method named IncrementalUpgrade on this same class.")]
public:
DacUpgradeResult^ Upgrade(
String^ currentInstanceName,
DacType^ dacTypeToBeDeployed,
DacUpgradeOptions^ upgradeOptions
)
[<ObsoleteAttribute("Please use the method named IncrementalUpgrade on this same class.")>]
member Upgrade :
currentInstanceName:string *
dacTypeToBeDeployed:DacType *
upgradeOptions:DacUpgradeOptions -> DacUpgradeResult
public function Upgrade(
currentInstanceName : String,
dacTypeToBeDeployed : DacType,
upgradeOptions : DacUpgradeOptions
) : DacUpgradeResult
Parâmetros
- currentInstanceName
Tipo: System. . :: . .String
Um valor String que especifica o nome da instância de DAC a ser atualizada.
- dacTypeToBeDeployed
Tipo: Microsoft.SqlServer.Management.Dac. . :: . .DacType
Um objeto DacType que faz referência ao tipo DAC extraído do pacote de DAC usado para a atualização.
- upgradeOptions
Tipo: Microsoft.SqlServer.Management.Dac. . :: . .DacUpgradeOptions
Um objeto DacUpgradeOptions que especifica as opções de atualização.
Valor de retorno
Tipo: Microsoft.SqlServer.Management.Dac. . :: . .DacUpgradeResult
Um objeto DacUpgradeResult que indica os resultados da atualização.