共用方式為


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

參數

傳回值

型別:Microsoft.SqlServer.Management.Dac. . :: . .DacUpgradeResult
表示升級結果的 DacUpgradeResult 物件。