Classe DistributionSubscription

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

Gerarchia di ereditarietà

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

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

Sintassi

'Dichiarazione
Public NotInheritable Class DistributionSubscription _
    Inherits ReplicationObject
'Utilizzo
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

Nel tipo DistributionSubscription sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico DistributionSubscription() Creates a new instance of the DistributionSubscription class.
Metodo pubblico 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.

In alto

Proprietà

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

In alto

Metodi

  Nome Descrizione
Metodo pubblico CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. Ereditato da ReplicationObject.
Metodo pubblico Decouple Decouples the referenced replication object from the server. Ereditato da ReplicationObject.
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo pubblico Load Loads the properties of an existing object from the server. Ereditato da ReplicationObject.
Metodo pubblico LoadProperties Loads the properties of an existing object from the server. Ereditato da ReplicationObject.
Metodo pubblico Refresh Reloads the properties of the object. Ereditato da ReplicationObject.
Metodo pubblico Script Infrastruttura. Generates a Transact-SQL script for the subscription.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

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.

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.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Replication