共用方式為


DtsConvert.ToPackage(IDTSPackage100) Method

Definition

Caution

The ToXXXX() methods have been replaced with the GetWrapper() method.

*** Member obsolete; use the GetWrapper(IDTSPackage100) method instead. *** Converts a native IDTSPackage100 object to a managed Package object.

public:
 static Microsoft::SqlServer::Dts::Runtime::Package ^ ToPackage(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackage100 ^ ipkg);
[System.Obsolete("The ToXXXX() methods have been replaced with the GetWrapper() method.")]
public static Microsoft.SqlServer.Dts.Runtime.Package ToPackage (Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 ipkg);
[<System.Obsolete("The ToXXXX() methods have been replaced with the GetWrapper() method.")>]
static member ToPackage : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 -> Microsoft.SqlServer.Dts.Runtime.Package
Public Shared Function ToPackage (ipkg As IDTSPackage100) As Package

Parameters

ipkg
IDTSPackage100

The native IDTSPackage100 object.

Returns

A managed Package object.

Attributes

Applies to