次の方法で共有


ReplicationMonitor.StatusOf メソッド

エージェントの種類別に監視されるディストリビューター側のレプリケーション エージェントの全体的な状態を返します。

名前空間:  Microsoft.SqlServer.Replication
アセンブリ:  Microsoft.SqlServer.Rmo (Microsoft.SqlServer.Rmo.dll)

構文

'宣言
Public Function StatusOf ( _
    agentType As AgentType _
) As ReplicationStatus
'使用
Dim instance As ReplicationMonitor 
Dim agentType As AgentType 
Dim returnValue As ReplicationStatus 

returnValue = instance.StatusOf(agentType)
public ReplicationStatus StatusOf(
    AgentType agentType
)
public:
ReplicationStatus StatusOf(
    AgentType agentType
)
member StatusOf : 
        agentType:AgentType -> ReplicationStatus
public function StatusOf(
    agentType : AgentType
) : ReplicationStatus

パラメーター

戻り値

型: Microsoft.SqlServer.Replication.ReplicationStatus
ReplicationStatus オブジェクトです。

説明

AgentType によって指定される任意のエージェントに対する最大の状態の番号が返されます。

StatusOf メソッドを取得できるのは、ディストリビューター側の固定サーバー ロール sysadmin のメンバー、あるいはディストリビューション データベースの固定データベース ロール db_owner または replmonitor のメンバーだけです。

関連項目

参照

ReplicationMonitor クラス

Microsoft.SqlServer.Replication 名前空間