Partager via


Classe DistributionSubscription

Represents information stored at the Distributor about a subscription to a transactional or snapshot publication.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.SqlServer.Replication. . :: . .ReplicationObject
    Microsoft.SqlServer.Replication..::..DistributionSubscription

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class DistributionSubscription _
    Inherits ReplicationObject
'Utilisation
Dim instance As DistributionSubscription
public sealed class DistributionSubscription : ReplicationObject
public ref class DistributionSubscription sealed : public ReplicationObject
[<SealedAttribute>]
type DistributionSubscription =  
    class
        inherit ReplicationObject
    end
public final class DistributionSubscription extends ReplicationObject

Le type DistributionSubscription expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique DistributionSubscription() () () () Creates a new instance of the DistributionSubscription class.
Méthode publique DistributionSubscription(String, String, String, String, String, String, ServerConnection) Creates a new instance of the DistributionSubscription class, with the required properties and with a connection to the Distributor.

Haut de la page

Propriétés

  Nom Description
Propriété publique AgentJobId Gets the ID of the SQL Server Agent job that synchronizes the Subscription. 
Propriété publique AgentSchedule Gets the synchronization agent schedule for the subscription.
Propriété publique CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (hérité de ReplicationObject.)
Propriété publique ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (hérité de ReplicationObject.)
Propriété publique DistributionAgent Gets the name of the SQL Server Agent job that is used to synchronize the subscription. 
Propriété publique DistributionDBName Gets or sets the name of the distribution database.
Propriété publique IsExistingObject Gets whether the object exists on the server or not. (hérité de ReplicationObject.)
Propriété publique Name Gets the name of the subscription.
Propriété publique PublicationDBName Gets or sets the name of the publication database.
Propriété publique PublicationName Gets or sets the name of the publication to which the subscription belongs.
Propriété publique PublisherName Gets or sets the Publisher of the publication to which the subscription belongs.
Propriété publique SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (hérité de ReplicationObject.)
Propriété publique Status Gets or sets the status of the subscription.
Propriété publique SubscriberName Gets or sets the name of the Subscriber.
Propriété publique SubscriptionDBName Gets or sets the name of the subscription database.
Propriété publique SubscriptionType Gets or sets whether the Distribution agent runs at the Distributor (Push) or at the Subscriber (Pull).
Propriété publique SyncType Gets or sets the manner in which the subscription is initialized.
Propriété publique UserData Gets or sets an object property that allows users to attach their own data to the object. (hérité de ReplicationObject.)

Haut de la page

Méthodes

  Nom Description
Méthode protégée CheckValidCreation Infrastructure. (hérité de ReplicationObject.)
Méthode protégée CheckValidDefinition Infrastructure. (hérité de ReplicationObject.)
Méthode publique CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (hérité de ReplicationObject.)
Méthode publique Decouple Decouples the referenced replication object from the server. (hérité de ReplicationObject.)
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode protégée GetChangeCommand Infrastructure. (hérité de ReplicationObject.)
Méthode protégée GetCreateCommand Infrastructure. (hérité de ReplicationObject.)
Méthode protégée GetDropCommand Infrastructure. (hérité de ReplicationObject.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée InternalRefresh Infrastructure. (hérité de ReplicationObject.)
Méthode publique Load Loads the properties of an existing object from the server. (hérité de ReplicationObject.)
Méthode publique LoadProperties Loads the properties of an existing object from the server. (hérité de ReplicationObject.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique Refresh Reloads the properties of the object. (hérité de ReplicationObject.)
Méthode publique Script Infrastructure.
Méthode publique ToString (hérité de Object.)

Haut de la page

Notes

The DistributionSubscription class is primarily used by SQL Server Management Studio to maintain subscriptions to non-SQL Server Publications. Use an instance of the TransSubscription or class to obtain information on subscriptions registered with a SQL Server Publisher.

The DistributionSubscription class can only be used to return information about an existing subscription. You must use an instance of the TransSubscription class to create or remove a subscription to a transactional or snapshot publication.

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

Thread Safety

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.