Nota:
El acceso a esta página requiere autorización. Puede intentar iniciar sesión o cambiar directorios.
El acceso a esta página requiere autorización. Puede intentar cambiar los directorios.
Esta API admite la infraestructura de SQL Server 2012 y no está prevista su utilización directa desde el código.
Specifies the replication agent with the specified agent core and command line.
Espacio de nombres: Microsoft.SqlServer.Replication
Ensamblado: Microsoft.SqlServer.Replication (en Microsoft.SqlServer.Replication.dll)
Sintaxis
'Declaración
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 devuelto
Tipo: System.Int32
The replication agent.