Upgrade 方法
注意:此 API 已經過時。
將 DAC 執行個體的 DAC 類型升級為從 DAC 封裝擷取之指定的 DAC 類型版本。
命名空間: Microsoft.SqlServer.Management.Dac
組件: Microsoft.SqlServer.Management.Dac (在 Microsoft.SqlServer.Management.Dac.dll 中)
語法
'宣告
<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
'用途
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
參數
- currentInstanceName
型別:System. . :: . .String
String 值,指定要升級之 DAC 執行個體的名稱。
- dacTypeToBeDeployed
型別:Microsoft.SqlServer.Management.Dac. . :: . .DacType
DacType 物件,參考從用於升級之 DAC 封裝擷取的 DAC 類型。
- upgradeOptions
型別:Microsoft.SqlServer.Management.Dac. . :: . .DacUpgradeOptions
指定升級選項的 DacUpgradeOptions 物件。
傳回值
型別:Microsoft.SqlServer.Management.Dac. . :: . .DacUpgradeResult
表示升級結果的 DacUpgradeResult 物件。