Aracılığıyla paylaş


ReplicationMonitor.StatusOf Yöntemi

Genel Durum izlenen dağıtımcı adresindeki çoğaltma aracıları Aracısı türüne göre verir.

Ad Alanı:  Microsoft.SqlServer.Replication
Derleme:  Microsoft.SqlServer.Rmo (Microsoft.SqlServer.Rmo içinde.dll)

Sözdizimi

'Bildirim
Public Function StatusOf ( _
    agentType As AgentType _
) As ReplicationStatus
'Kullanım
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

Parametreler

Açıklamalar

Tarafından belirtilen herhangi bir aracı için en yüksek durum numarası AgentType döndürülür.

StatusOf yöntem yalnızca alınan üyeleri tarafından sysadmin sabit sunucu rolü üyeleri tarafından veya dağıtıcı db_owner veya replmonitor dağıtım veritabanı üzerinde veritabanı rolleri sabit.

StatusOf yöntem ile kullanılabilir SQL Server 2000 ve SQL Server 2005.

This namespace, class, or member is supported only in version 2.0 of the .NETFramework.