Método AgentApplication.AgentMain (AgentCore, String)
Essa API oferece suporte à infraestrutura do SQL Server 2012 e não se destina a ser usada diretamente no seu código.
Specifies the replication agent with the specified agent core and command line.
Namespace: Microsoft.SqlServer.Replication
Assembly: Microsoft.SqlServer.Replication (em Microsoft.SqlServer.Replication.dll)
Sintaxe
'Declaração
Protected Shared Function AgentMain ( _
agentCore As AgentCore, _
commandLine As String _
) As Integer
'Uso
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
Parâmetros
- agentCore
Tipo: Microsoft.SqlServer.Replication.AgentCore
The core for replication agent.
- commandLine
Tipo: System.String
The command line where to run the agent.
Valor de retorno
Tipo: System.Int32
The replication agent.