Application.LoadPackage Method (String, IDTSEvents, Boolean)
Loads a Package from the file system, and specifies the threading model.
Assembly: Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)
member LoadPackage : fileName:string * events:IDTSEvents * loadNeutral:bool -> Package
- Type: System.String
The name of the file that contains the package to load.
- Type: System.Boolean
A Boolean that indicates whether to load the package as neutral threaded. If false, loads the package as apartment threaded.
Return ValueType: Microsoft.SqlServer.Dts.Runtime.Package
The package that was loaded.
The following code example loads a package from the file system, setting the loadNeutral flag to false, and then returns several properties for the package.
Number of configurations = 0
VersionGUID = Microsoft.SqlServer.Dts.Runtime.DtsProperty
ProtectionLevel = EncryptSensitiveWithUserKey