Share via


PackageItem.LoadPackage Method

Loads a package into the project with specified events.

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

Syntax

'Declaration
Public Function LoadPackage ( _
    events As IDTSEvents _
) As Package
'Usage
Dim instance As PackageItem 
Dim events As IDTSEvents 
Dim returnValue As Package 

returnValue = instance.LoadPackage(events)
public Package LoadPackage(
    IDTSEvents events
)
public:
Package^ LoadPackage(
    IDTSEvents^ events
)
member LoadPackage : 
        events:IDTSEvents -> Package
public function LoadPackage(
    events : IDTSEvents
) : Package

Parameters

Return Value

Type: Microsoft.SqlServer.Dts.Runtime.Package
The Package object that represents the package loaded into the project.

See Also

Reference

PackageItem Class

Microsoft.SqlServer.Dts.Runtime Namespace