AgentApplication.AgentMain 方法 (AgentCore, String)

此 API 支持 SQL Server 2012 基础结构,但不能通过代码直接使用。

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

命名空间:  Microsoft.SqlServer.Replication
程序集:  Microsoft.SqlServer.Replication(在 Microsoft.SqlServer.Replication.dll 中)

语法

声明
Protected Shared Function AgentMain ( _
    agentCore As AgentCore, _
    commandLine As String _
) As Integer
用法
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

参数

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

返回值

类型:System.Int32
The replication agent.

请参阅

参考

AgentApplication 类

AgentMain 重载

Microsoft.SqlServer.Replication 命名空间