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
參數
- agentCore
型別:Microsoft.SqlServer.Replication.AgentCore
The core for replication agent.
- commandLine
型別:System.String
The command line where to run the agent.
傳回值
型別:System.Int32
The replication agent.