Udostępnij przez


DtsConvert.GetWrapper Method (IDTSPackage100)

Gets the managed Package object that corresponds to the specified native IDTSPackage100 object. This method is not CLS-compliant.

Namespace: Microsoft.SqlServer.Dts.Runtime
Assembly: Microsoft.SqlServer.ManagedDTS (in microsoft.sqlserver.manageddts.dll)

Syntax

'Deklaracja
Public Shared Function GetWrapper ( _
    ipkg As IDTSPackage100 _
) As Package
public static Package GetWrapper (
    IDTSPackage100 ipkg
)
public:
static Package^ GetWrapper (
    IDTSPackage100^ ipkg
)
public static Package GetWrapper (
    IDTSPackage100 ipkg
)
public static function GetWrapper (
    ipkg : IDTSPackage100
) : Package

Parameters

Return Value

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.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.