Partager via


Méthode AgentApplication.AgentMain (AgentCore, String)

Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.

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

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Replication (en Microsoft.SqlServer.Replication.dll)

Syntaxe

'Déclaration
Protected Shared Function AgentMain ( _
    agentCore As AgentCore, _
    commandLine As String _
) As Integer
'Utilisation
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

Paramètres

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

Valeur de retour

Type : System.Int32
The replication agent.

Voir aussi

Référence

AgentApplication Classe

Surcharge AgentMain

Espace de noms Microsoft.SqlServer.Replication