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)