Класс DistributionSubscription

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

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Replication
Сборка:  Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)

Синтаксис

'Декларация
Public NotInheritable Class DistributionSubscription _
    Inherits ReplicationObject
'Применение
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

Тип DistributionSubscription обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод DistributionSubscription() Creates a new instance of the DistributionSubscription class.
Открытый метод 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.

В начало

Свойства

  Имя Описание
Открытое свойство AgentJobId Gets the ID of the SQL Server Agent job that synchronizes the Subscription.
Открытое свойство AgentSchedule Gets the synchronization agent schedule for the subscription.
Открытое свойство CachePropertyChanges Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (Производный от ReplicationObject.)
Открытое свойство ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (Производный от ReplicationObject.)
Открытое свойство DistributionAgent Gets the name of the SQL Server Agent job that is used to synchronize the subscription.
Открытое свойство DistributionDBName Gets or sets the name of the distribution database.
Открытое свойство IsExistingObject Gets whether the object exists on the server or not. (Производный от ReplicationObject.)
Открытое свойство Name Gets the name of the subscription.
Открытое свойство PublicationDBName Gets or sets the name of the publication database.
Открытое свойство PublicationName Gets or sets the name of the publication to which the subscription belongs.
Открытое свойство PublisherName Gets or sets the Publisher of the publication to which the subscription belongs.
Открытое свойство SqlServerName Gets the name of the Microsoft SQL Server instance to which this object is connected. (Производный от ReplicationObject.)
Открытое свойство Status Gets or sets the status of the subscription.
Открытое свойство SubscriberName Gets or sets the name of the Subscriber.
Открытое свойство SubscriptionDBName Gets or sets the name of the subscription database.
Открытое свойство SubscriptionType Gets or sets whether the Distribution agent runs at the Distributor (Push) or at the Subscriber (Pull).
Открытое свойство SyncType Gets or sets the manner in which the subscription is initialized.
Открытое свойство UserData Gets or sets an object property that allows users to attach their own data to the object. (Производный от ReplicationObject.)

В начало

Методы

  Имя Описание
Открытый метод CommitPropertyChanges Sends all the cached property change statements to the instance of Microsoft SQL Server. (Производный от ReplicationObject.)
Открытый метод Decouple Decouples the referenced replication object from the server. (Производный от ReplicationObject.)
Открытый метод Equals (Производный от Object.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetType (Производный от Object.)
Открытый метод Load Loads the properties of an existing object from the server. (Производный от ReplicationObject.)
Открытый метод LoadProperties Loads the properties of an existing object from the server. (Производный от ReplicationObject.)
Открытый метод Refresh Reloads the properties of the object. (Производный от ReplicationObject.)
Открытый метод Script Инфраструктура. Generates a Transact-SQL script for the subscription.
Открытый метод ToString (Производный от Object.)

В начало

Замечания

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.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Replication