DtsConvert.GetWrapper 方法 (IDTSPackage100)
Gets the managed Package object that corresponds to the specified native IDTSPackage100 object.
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)
語法
'宣告
Public Shared Function GetWrapper ( _
ipkg As IDTSPackage100 _
) As Package
'用途
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
參數
- ipkg
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
A native IDTSPackage100 object.
傳回值
型別:Microsoft.SqlServer.Dts.Runtime.Package
The managed Package object that corresponds to the specified native IDTSPackage100 object.
備註
Use the DtsConvert.GetWrapper(IDTSPackage100) method instead of the obsolete ToPackage method.