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 네임스페이스