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.