DtsConvert.GetWrapper Method (IDTSPackage100)
Gets the managed Package object that corresponds to the specified native IDTSPackage100 object.
Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
Syntax
'Declaration
Public Shared Function GetWrapper ( _
ipkg As IDTSPackage100 _
) As Package
'Usage
Dim ipkg As IDTSPackage100
Dim returnValue As Package
returnValue = DtsConvert.GetWrapper(ipkg)
public static Package GetWrapper(
IDTSPackage100 ipkg
)
public:
static Package^ GetWrapper(
IDTSPackage100^ ipkg
)
static member GetWrapper :
ipkg:IDTSPackage100 -> Package
public static function GetWrapper(
ipkg : IDTSPackage100
) : Package
Parameters
- ipkg
Type: Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
A native IDTSPackage100 object.
Return Value
Type: Microsoft.SqlServer.Dts.Runtime.Package
The managed Package object that corresponds to the specified native IDTSPackage100 object.
Remarks
Use the DtsConvert.GetWrapper(IDTSPackage100) method instead of the obsolete ToPackage method.