Condividi tramite


Metodo DistributionDatabase.CleanUpAnonymousSubscription

Removes metadata for anonymous subscriptions at the Distributor.

Spazio dei nomi  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Sintassi

'Dichiarazione
Public Sub CleanUpAnonymousSubscription ( _
    agentId As Integer, _
    publicationType As PublicationType _
)
'Utilizzo
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
)

Parametri

Osservazioni

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 Monitoraggio della replica.

The CleanUpAnonymousSubscription method can only be called by members of the db_owner fixed database role on the distribution database.

Vedere anche

Riferimento

DistributionDatabase Classe

Spazio dei nomi Microsoft.SqlServer.Replication