ReplicationMonitor.StatusOf(AgentType) 方法

定義

依代理類型回傳受監控分發器複製代理的整體狀態。

public:
 Microsoft::SqlServer::Replication::ReplicationStatus StatusOf(Microsoft::SqlServer::Replication::AgentType agentType);
public Microsoft.SqlServer.Replication.ReplicationStatus StatusOf(Microsoft.SqlServer.Replication.AgentType agentType);
member this.StatusOf : Microsoft.SqlServer.Replication.AgentType -> Microsoft.SqlServer.Replication.ReplicationStatus
Public Function StatusOf (agentType As AgentType) As ReplicationStatus

參數

agentType
AgentType

一個 AgentType 指定代理人類型的數值。

傳回

ReplicationStatus 物件。

備註

會回傳由指定的 AgentType 任何代理的最高狀態號碼。

StatusOf方法僅能由分配器中固定伺服器角色的成員sysadmin,或由分配資料庫中固定伺服器角色的成員db_ownerreplmonitor取得。

適用於