Condividi tramite


Metodo ServCompMQTask.Execute

Questa API supporta l'infrastruttura SQL Server 2012 e non può essere utilizzata direttamente dal codice.

Runs the task.

Spazio dei nomi  Microsoft.SqlServer.Dts.Tasks.MessageQueueTask
Assembly:  Microsoft.SqlServer.MSMQTask (in Microsoft.SqlServer.MSMQTask.dll)

Sintassi

'Dichiarazione
Public Function Execute ( _
    connections As Connections, _
    variableDispenser As VariableDispenser, _
    events As IDTSComponentEvents, _
    log As IDTSLogging, _
    transaction As Object _
) As DTSExecResult
'Utilizzo
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

Parametri

  • transaction
    Tipo: 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 nullriferimento Null (Nothing in Visual Basic)..

Valore restituito

Tipo: Microsoft.SqlServer.Dts.Runtime.DTSExecResult
A value from the DTSExecResult enumeration.

Vedere anche

Riferimento

ServCompMQTask Classe

Spazio dei nomi Microsoft.SqlServer.Dts.Tasks.MessageQueueTask