ToPackage 方法
注意:此 API 已經過時。
*** Member obsolete; use the GetWrapper(IDTSPackage100) method instead. *** Converts a native IDTSPackage100 object to a managed Package object.
命名空間: Microsoft.SqlServer.Dts.Runtime
組件: Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)
語法
'宣告
<ObsoleteAttribute("The ToXXXX() methods have been replaced with the GetWrapper() method.")> _
Public Shared Function ToPackage ( _
ipkg As IDTSPackage100 _
) As Package
'用途
Dim ipkg As IDTSPackage100
Dim returnValue As Package
returnValue = DtsConvert.ToPackage(ipkg)
[ObsoleteAttribute("The ToXXXX() methods have been replaced with the GetWrapper() method.")]
public static Package ToPackage(
IDTSPackage100 ipkg
)
[ObsoleteAttribute(L"The ToXXXX() methods have been replaced with the GetWrapper() method.")]
public:
static Package^ ToPackage(
IDTSPackage100^ ipkg
)
[<ObsoleteAttribute("The ToXXXX() methods have been replaced with the GetWrapper() method.")>]
static member ToPackage :
ipkg:IDTSPackage100 -> Package
public static function ToPackage(
ipkg : IDTSPackage100
) : Package
參數
- ipkg
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper. . :: . .IDTSPackage100
The native IDTSPackage100 object.
傳回值
型別:Microsoft.SqlServer.Dts.Runtime. . :: . .Package
A managed Package object.