AgentApplication.AgentMain Method (AgentCore, String)

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

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

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Syntax

'Declaration
Protected Shared Function AgentMain ( _
    agentCore As AgentCore, _
    commandLine As String _
) As Integer
'Usage
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

Parameters

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

Return Value

Type: System.Int32
The replication agent.

See Also

Reference

AgentApplication Class

AgentMain Overload

Microsoft.SqlServer.Replication Namespace