다음을 통해 공유


CleanUpAnonymousSubscription 메서드

Removes metadata for anonymous subscriptions at the Distributor.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo.dll의 Microsoft.SqlServer.Rmo

구문

‘선언
Public Sub CleanUpAnonymousSubscription ( _
    agentId As Integer, _
    publicationType As PublicationType _
)
‘사용 방법
Dim instance As DistributionDatabase
Dim agentId As Integer
Dim publicationType As PublicationType

instance.CleanUpAnonymousSubscription(agentId, _
    publicationType)
public void CleanUpAnonymousSubscription(
    int agentId,
    PublicationType publicationType
)
public:
void CleanUpAnonymousSubscription(
    int agentId, 
    PublicationType publicationType
)
member CleanUpAnonymousSubscription : 
        agentId:int * 
        publicationType:PublicationType -> unit 
public function CleanUpAnonymousSubscription(
    agentId : int, 
    publicationType : PublicationType
)

매개 변수

주의

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.