言語

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_ownerまたはreplmonitor固定データベースの役割のメンバーのみが取得できます。

適用対象