共用方式為


LoadFromSqlServer2 方法

此 API 支援 .NET Framework 結構,但並不是針對直接從程式碼使用而設計。

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
Public Function LoadFromSqlServer2 ( _
    packagePath As String, _
    connectionObject As Object, _
    events As IDTSEvents _
) As Package
'用途
Dim instance As Application
Dim packagePath As String
Dim connectionObject As Object
Dim events As IDTSEvents
Dim returnValue As Package

returnValue = instance.LoadFromSqlServer2(packagePath, _
    connectionObject, events)
public Package LoadFromSqlServer2(
    string packagePath,
    Object connectionObject,
    IDTSEvents events
)
public:
Package^ LoadFromSqlServer2(
    String^ packagePath, 
    Object^ connectionObject, 
    IDTSEvents^ events
)
member LoadFromSqlServer2 : 
        packagePath:string * 
        connectionObject:Object * 
        events:IDTSEvents -> Package 
public function LoadFromSqlServer2(
    packagePath : String, 
    connectionObject : Object, 
    events : IDTSEvents
) : Package

參數