共用方式為


ApplicationClass.LoadPackage(String, Boolean, IDTSEvents100) Method

Definition

Loads a package from the file system, and specifies the threading model.

public:
 virtual Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackage100 ^ LoadPackage(System::String ^ FileName, bool loadNeutral, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEvents100 ^ pEvents) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication130::LoadPackage;
public:
 virtual Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSPackage100 ^ LoadPackage(System::String ^ FileName, bool loadNeutral, Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSEvents100 ^ pEvents) = Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSApplication150::LoadPackage;
[System.Runtime.InteropServices.DispId(9)]
public virtual Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100 LoadPackage (string FileName, bool loadNeutral, Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 pEvents);
[<System.Runtime.InteropServices.DispId(9)>]
abstract member LoadPackage : string * bool * Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 -> Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
override this.LoadPackage : string * bool * Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSEvents100 -> Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSPackage100
Public Overridable Function LoadPackage (FileName As String, loadNeutral As Boolean, pEvents As IDTSEvents100) As IDTSPackage100

Parameters

FileName
String

The name of the file that contains the package to load.

loadNeutral
Boolean

true to load the package as neutral threaded. false to load the package as apartment threaded.

pEvents
IDTSEvents100

An IDTSEvents interface.

Returns

The package that was loaded.

Implements

Attributes

Applies to