IDTSTask100.Execute 方法
此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Runs the task.
命名空間: Microsoft.SqlServer.Dts.Runtime.Wrapper
組件: Microsoft.SqlServer.DTSRuntimeWrap (在 Microsoft.SqlServer.DTSRuntimeWrap.dll 中)
語法
'宣告
Function Execute ( _
pConnections As IDTSConnections100, _
pVariableDispenser As IDTSVariableDispenser100, _
pEvents As IDTSComponentEvents100, _
pLog As IDTSLogging100, _
vTransaction As Object _
) As DTSExecResult
'用途
Dim instance As IDTSTask100
Dim pConnections As IDTSConnections100
Dim pVariableDispenser As IDTSVariableDispenser100
Dim pEvents As IDTSComponentEvents100
Dim pLog As IDTSLogging100
Dim vTransaction As Object
Dim returnValue As DTSExecResult
returnValue = instance.Execute(pConnections, _
pVariableDispenser, pEvents, pLog, _
vTransaction)
DTSExecResult Execute(
IDTSConnections100 pConnections,
IDTSVariableDispenser100 pVariableDispenser,
IDTSComponentEvents100 pEvents,
IDTSLogging100 pLog,
Object vTransaction
)
DTSExecResult Execute(
[InAttribute] IDTSConnections100^ pConnections,
[InAttribute] IDTSVariableDispenser100^ pVariableDispenser,
[InAttribute] IDTSComponentEvents100^ pEvents,
[InAttribute] IDTSLogging100^ pLog,
[InAttribute] Object^ vTransaction
)
abstract Execute :
pConnections:IDTSConnections100 *
pVariableDispenser:IDTSVariableDispenser100 *
pEvents:IDTSComponentEvents100 *
pLog:IDTSLogging100 *
vTransaction:Object -> DTSExecResult
function Execute(
pConnections : IDTSConnections100,
pVariableDispenser : IDTSVariableDispenser100,
pEvents : IDTSComponentEvents100,
pLog : IDTSLogging100,
vTransaction : Object
) : DTSExecResult
參數
- pConnections
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSConnections100
A collection of connections used by the task.
- pVariableDispenser
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSVariableDispenser100
The object for locking variables.
- pEvents
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSComponentEvents100
Implements the IDTSComponentEvents100 interface.
- pLog
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSLogging100
Implements the IDTSLogging100 interface.
- vTransaction
型別:System.Object
The transaction objects that the container is a part of.
傳回值
型別:Microsoft.SqlServer.Dts.Runtime.Wrapper.DTSExecResult
A value from the DTSExecResult enumeration.
備註
For more information, see Task.