ReplicationMonitor.StatusOf(AgentType) ReplicationMonitor.StatusOf(AgentType) Method

Definition

Returns the overall status for replication agents at the monitored Distributor by agent type.

public:
 Microsoft::SqlServer::Replication::ReplicationStatus StatusOf(Microsoft::SqlServer::Replication::AgentType agentType);
public Microsoft.SqlServer.Replication.ReplicationStatus StatusOf (Microsoft.SqlServer.Replication.AgentType agentType);
Parameters
agentType
AgentType AgentType

An AgentType value that specifies the type of agent.

Returns

Remarks

The highest status number for any agent specified by AgentType is returned.

The StatusOf method can only be retrieved by members of the sysadmin fixed server role at the Distributor or by members of the db_owner or replmonitor fixed database roles on the distribution database.

Applies to