ReplicationMonitor.StatusOf(AgentType) Metode

Definisi

Mengembalikan status keseluruhan untuk agen replikasi di Distributor yang dipantau berdasarkan jenis agen.

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

Parameter

agentType
AgentType

Nilai AgentType yang menentukan jenis agen.

Mengembalikan

Objek ReplicationStatus.

Keterangan

Angka status tertinggi untuk setiap agen yang ditentukan oleh AgentType dikembalikan.

Metode StatusOf ini hanya dapat diambil oleh anggota sysadmin peran server tetap di Distributor atau oleh anggota db_owner atau replmonitor peran database tetap pada database distribusi.

Berlaku untuk