DistributionSubscription Members

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

The following tables list the members exposed by the DistributionSubscription type.

Public Constructors

  名稱 Description
DistributionSubscription Overloaded. Creates a new instance of the DistributionSubscription class.

頂端

Public Properties

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

頂端

Public Methods

(see also Protected Methods )

  名稱 Description
ms155991.pubmethod(zh-tw,SQL.90).gif CommitPropertyChanges  Sends all the cached property change statements to the instance of Microsoft SQL Server. (inherited from ReplicationObject)
ms155991.pubmethod(zh-tw,SQL.90).gif Decouple  Decouples the referenced replication object from the server. (inherited from ReplicationObject)
ms155991.pubmethod(zh-tw,SQL.90).gif Equals  Overloaded. (inherited from Object )
ms155991.pubmethod(zh-tw,SQL.90).gif GetHashCode  (inherited from Object )
ms155991.pubmethod(zh-tw,SQL.90).gif GetType  (inherited from Object )
ms155991.pubmethod(zh-tw,SQL.90).gif Load  Loads the properties of an existing object from the server. (inherited from ReplicationObject)
ms155991.pubmethod(zh-tw,SQL.90).gif LoadProperties  Loads the properties of an existing object from the server. (inherited from ReplicationObject)
ms155991.pubmethod(zh-tw,SQL.90).gifms155991.static(zh-tw,SQL.90).gif ReferenceEquals  (inherited from Object )
ms155991.pubmethod(zh-tw,SQL.90).gif Refresh  Reloads the properties of the object. (inherited from ReplicationObject)
ms155991.pubmethod(zh-tw,SQL.90).gif Script  
ms155991.pubmethod(zh-tw,SQL.90).gif ToString  (inherited from Object )

頂端

Protected Methods

  名稱 Description
ms155991.protmethod(zh-tw,SQL.90).gif CheckValidCreation  (inherited from ReplicationObject )
ms155991.protmethod(zh-tw,SQL.90).gif CheckValidDefinition  (inherited from ReplicationObject )
ms155991.protmethod(zh-tw,SQL.90).gif Finalize  (inherited from Object )
ms155991.protmethod(zh-tw,SQL.90).gif GetChangeCommand  (inherited from ReplicationObject )
ms155991.protmethod(zh-tw,SQL.90).gif GetCreateCommand  (inherited from ReplicationObject )
ms155991.protmethod(zh-tw,SQL.90).gif GetDropCommand  (inherited from ReplicationObject )
ms155991.protmethod(zh-tw,SQL.90).gif InternalRefresh  (inherited from ReplicationObject )
ms155991.protmethod(zh-tw,SQL.90).gif MemberwiseClone  (inherited from Object )

頂端

請參閱

參考

DistributionSubscription Class
Microsoft.SqlServer.Replication Namespace