Share via


IDTSPackageVersionUpdate100.UpdateVersion Method

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

Updates the version of the package.

Namespace:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)

Syntax

'Declaration
Sub UpdateVersion ( _
    PackageVersion As Integer, _
    TargetVersion As Integer, _
    Events As IDTSInfoEvents100, _
    <OutAttribute> ByRef XmlDocument As String, _
    PackagePassword As String, _
    packageUpgradeVersion As DTS_PACKAGE_UPGRADE_OPTIONS _
)
'Usage
Dim instance As IDTSPackageVersionUpdate100 
Dim PackageVersion As Integer 
Dim TargetVersion As Integer 
Dim Events As IDTSInfoEvents100 
Dim XmlDocument As String 
Dim PackagePassword As String 
Dim packageUpgradeVersion As DTS_PACKAGE_UPGRADE_OPTIONS

instance(PackageVersion, TargetVersion, _
    Events, XmlDocument, PackagePassword, _
    packageUpgradeVersion)
void UpdateVersion(
    int PackageVersion,
    int TargetVersion,
    IDTSInfoEvents100 Events,
    out string XmlDocument,
    string PackagePassword,
    DTS_PACKAGE_UPGRADE_OPTIONS packageUpgradeVersion
)
void UpdateVersion(
    [InAttribute] int PackageVersion, 
    [InAttribute] int TargetVersion, 
    [InAttribute] IDTSInfoEvents100^ Events, 
    [InAttribute] [OutAttribute] String^% XmlDocument, 
    [InAttribute] String^ PackagePassword, 
    DTS_PACKAGE_UPGRADE_OPTIONS packageUpgradeVersion
)
abstract UpdateVersion : 
        PackageVersion:int * 
        TargetVersion:int * 
        Events:IDTSInfoEvents100 * 
        XmlDocument:string byref * 
        PackagePassword:string * 
        packageUpgradeVersion:DTS_PACKAGE_UPGRADE_OPTIONS -> unit
function UpdateVersion(
    PackageVersion : int, 
    TargetVersion : int, 
    Events : IDTSInfoEvents100, 
    XmlDocument : String, 
    PackagePassword : String, 
    packageUpgradeVersion : DTS_PACKAGE_UPGRADE_OPTIONS
)

Parameters

  • PackageVersion
    Type: System.Int32
    The version of the package.
  • TargetVersion
    Type: System.Int32
    The target version for the package to update.
  • XmlDocument
    Type: System.String%
    An XML document of the version update.
  • PackagePassword
    Type: System.String
    The password of the package.

See Also

Reference

IDTSPackageVersionUpdate100 Interface

Microsoft.SqlServer.Dts.Runtime.Wrapper Namespace