Share via


PublicationMonitor.TransPendingCommandInfo Method

Returns information about pending commands for a subscription.

네임스페이스: Microsoft.SqlServer.Replication
어셈블리: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

구문

‘선언
Public Function TransPendingCommandInfo ( _
    subscriberName As String, _
    subscriptionDBName As String, _
    subscriptionType As SubscriptionOption _
) As PendingCommandInfo
public PendingCommandInfo TransPendingCommandInfo (
    string subscriberName,
    string subscriptionDBName,
    SubscriptionOption subscriptionType
)
public:
PendingCommandInfo^ TransPendingCommandInfo (
    String^ subscriberName, 
    String^ subscriptionDBName, 
    SubscriptionOption subscriptionType
)
public PendingCommandInfo TransPendingCommandInfo (
    String subscriberName, 
    String subscriptionDBName, 
    SubscriptionOption subscriptionType
)
public function TransPendingCommandInfo (
    subscriberName : String, 
    subscriptionDBName : String, 
    subscriptionType : SubscriptionOption
) : PendingCommandInfo

매개 변수

  • subscriberName
    A String value that specifies the name of the Subscriber on which the subscription resides.
  • subscriptionDBName
    A String value that specifies the name of the subscription database.
  • subscriptionType
    A SubscriptionOption object value that specifies the type of subscription (push or pull).

반환 값

A PendingCommandInfo object value that contains the list of pending commands and estimated time to complete delivering them.

주의

The TransPendingCommandInfo method can only be called by members of the sysadmin fixed server role on the Distributor, by members of the db_owner fixed database role on the distribution database, or by users in the publication access list (PAL) for the publication.

Calling TransPendingCommandInfo is equivalent to executing sp_replmonitorsubscriptionpendingcmds(Transact-SQL).

The TransPendingCommandInfo method is available with SQL Server 2005 only.

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

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

PublicationMonitor Class
PublicationMonitor Members
Microsoft.SqlServer.Replication Namespace

관련 자료

How to: Programmatically Monitor Replication (RMO Programming)