Condividi tramite


Metodo AgentApplication.AgentMain (AgentCore, String)

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

Specifies the replication agent with the specified agent core and command line.

Spazio dei nomi  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Sintassi

'Dichiarazione
Protected Shared Function AgentMain ( _
    agentCore As AgentCore, _
    commandLine As String _
) As Integer
'Utilizzo
Dim agentCore As AgentCore 
Dim commandLine As String 
Dim returnValue As Integer 

returnValue = AgentApplication.AgentMain(agentCore, _
    commandLine)
protected static int AgentMain(
    AgentCore agentCore,
    string commandLine
)
protected:
static int AgentMain(
    AgentCore^ agentCore, 
    String^ commandLine
)
static member AgentMain : 
        agentCore:AgentCore * 
        commandLine:string -> int
protected static function AgentMain(
    agentCore : AgentCore, 
    commandLine : String
) : int

Parametri

  • commandLine
    Tipo: System.String
    The command line where to run the agent.

Valore restituito

Tipo: System.Int32
The replication agent.

Vedere anche

Riferimento

AgentApplication Classe

Overload AgentMain

Spazio dei nomi Microsoft.SqlServer.Replication