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
- events
Type: Microsoft.SqlServer.Dts.Runtime.IDTSEvents
The object that defines events handled by the package.
Return Value
Type: Microsoft.SqlServer.Dts.Runtime.Package
The Package object that represents the package loaded into the project.