DistributionDatabase.CleanUpAnonymousSubscription Method
Removes metadata for anonymous subscriptions at the Distributor.
命名空間: Microsoft.SqlServer.Replication
組件: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)
語法
'宣告
Public Sub CleanUpAnonymousSubscription ( _
agentId As Integer, _
publicationType As PublicationType _
)
public void CleanUpAnonymousSubscription (
int agentId,
PublicationType publicationType
)
public:
void CleanUpAnonymousSubscription (
int agentId,
PublicationType publicationType
)
public void CleanUpAnonymousSubscription (
int agentId,
PublicationType publicationType
)
public function CleanUpAnonymousSubscription (
agentId : int,
publicationType : PublicationType
)
參數
- agentId
An Int32 value that specifies the agent ID value.
- publicationType
A PublicationType object value that specifies the publication type.
備註
Use the CleanUpAnonymousSubscription method to remove the metadata for anonymous subscriptions that have expired or that no longer exist. Otherwise, this metadata may be returned by Replication Monitor. You can also use the ExcludeAnonymousSubscriptions property to prevent anonymous subscription information from being returned. For more information, see 使用複寫監視器監視複寫.
The CleanUpAnonymousSubscription method can only be called by members of the db_owner fixed database role on the distribution database.
The CleanUpAnonymousSubscription method can only be used with SQL Server 2000 or later.
執行緒安全性
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 的硬體和軟體需求>。
請參閱
參考
DistributionDatabase Class
DistributionDatabase Members
Microsoft.SqlServer.Replication Namespace