此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。
Runs the task.
命名空間: Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
組件: Microsoft.SqlServer.MSMQTask (在 Microsoft.SqlServer.MSMQTask.dll 中)
語法
'宣告
Public Function Execute ( _
connections As Connections, _
variableDispenser As VariableDispenser, _
events As IDTSComponentEvents, _
log As IDTSLogging, _
transaction As Object _
) As DTSExecResult
'用途
Dim instance As ServCompMQTask
Dim connections As Connections
Dim variableDispenser As VariableDispenser
Dim events As IDTSComponentEvents
Dim log As IDTSLogging
Dim transaction As Object
Dim returnValue As DTSExecResult
returnValue = instance.Execute(connections, _
variableDispenser, events, log, transaction)
public DTSExecResult Execute(
Connections connections,
VariableDispenser variableDispenser,
IDTSComponentEvents events,
IDTSLogging log,
Object transaction
)
public:
DTSExecResult Execute(
Connections^ connections,
VariableDispenser^ variableDispenser,
IDTSComponentEvents^ events,
IDTSLogging^ log,
Object^ transaction
)
member Execute :
connections:Connections *
variableDispenser:VariableDispenser *
events:IDTSComponentEvents *
log:IDTSLogging *
transaction:Object -> DTSExecResult
public function Execute(
connections : Connections,
variableDispenser : VariableDispenser,
events : IDTSComponentEvents,
log : IDTSLogging,
transaction : Object
) : DTSExecResult
參數
- connections
型別:Microsoft.SqlServer.Dts.Runtime.Connections
A collection of connections used by the task.
- variableDispenser
型別:Microsoft.SqlServer.Dts.Runtime.VariableDispenser
A VariableDispenser object for locking variables.
- events
型別:Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents
An object implementing the IDTSComponentEvents interface.
- log
型別:Microsoft.SqlServer.Dts.Runtime.IDTSLogging
An object implementing the IDTSLogging interface.
- transaction
型別:System.Object
The transaction objects that the container is a part of. The runtime provides the transaction for the container, based on the TransactionOption property. This value can be nullnull 參考 (在 Visual Basic 中為 Nothing).
傳回值
型別:Microsoft.SqlServer.Dts.Runtime.DTSExecResult
A value from the DTSExecResult enumeration.