Represents information about a transactional or snapshot publication stored at the Distributor.
The following tables list the members exposed by the DistributionPublication type.
Public Constructors
| 名称 | Description | |
|---|---|---|
| DistributionPublication | Overloaded. Creates a new instance of the DistributionPublication class. | 
顶部
Public Properties
| 名称 | Description | |
|---|---|---|
| .gif) | Attributes | Gets or sets the publication attributes for the distribution publication. | 
| .gif) | CachePropertyChanges | Gets or sets whether to cache changes made to the replication properties or to apply them immediately. (inherited from ReplicationObject) | 
| .gif) | ConnectionContext | Gets or sets the connection to an instance of Microsoft SQL Server. (inherited from ReplicationObject) | 
| .gif) | Description | Gets or sets a description for the publication. | 
| .gif) | DistributionArticles | Returns information about the articles in the publication stored at the Distributor. | 
| .gif) | DistributionDBName | Gets or sets the name of the distribution database for the publication. | 
| .gif) | DistributionSubscriptions | Represents information about subscriptions to the publication stored at the Distributor. | 
| .gif) | IsExistingObject | Gets whether the object exists on the server or not. (inherited from ReplicationObject) | 
| .gif) | LogReaderAgent | Gets or sets the name of the Log Reader Agent job for the transactional publication. | 
| .gif) | Name | Gets or sets the name of the publication. | 
| .gif) | PubId | Gets the publication ID. | 
| .gif) | PublicationDBName | Gets or sets the name of the publication database. | 
| .gif) | PublisherName | Gets or sets the name of the Publisher. | 
| .gif) | SnapshotAgent | Gets or sets the name of the Snapshot Agent job for the transactional publication. | 
| .gif) | SqlServerName | Gets the name of the Microsoft SQL Server instance to which this object is connected. (inherited from ReplicationObject) | 
| .gif) | Type | Gets or sets the type of replication for this publication. | 
| .gif) | UserData | Gets or sets an object property that allows users to attach their own data to the object. (inherited from ReplicationObject) | 
| .gif) | VendorName | Gets or sets the product manufacturer of the non-SQL Server Publisher of the publication. | 
顶部
Public Methods
(see also Protected Methods )
| 名称 | Description | |
|---|---|---|
| .gif) | CommitPropertyChanges | Sends all the cached property change statements to the instance of Microsoft SQL Server. (inherited from ReplicationObject) | 
| .gif) | Create | Creates the publication metadata at the Distributor. | 
| .gif) | Decouple | Decouples the referenced replication object from the server. (inherited from ReplicationObject) | 
| .gif) | EnumDistributionArticles | Returns information maintained at the Distributor on articles in this publication. | 
| .gif) | EnumDistributionSubscriptions | Returns information maintained at the Distributor for subscriptions to this publication. | 
| .gif) | Equals | Overloaded. (inherited from Object ) | 
| .gif) | GetHashCode | (inherited from Object ) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | Load | Loads the properties of an existing object from the server. (inherited from ReplicationObject) | 
| .gif) | LoadProperties | Loads the properties of an existing object from the server. (inherited from ReplicationObject) | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | Refresh | Reloads the properties of the object. (inherited from ReplicationObject) | 
| .gif) | Remove | Removes metadata for the publication from the Distributor. | 
| .gif) | Script | Generates a Transact-SQL script that can be used to create or remove the publication metadata at the Distributor. | 
| .gif) | ToString | (inherited from Object ) | 
顶部
Protected Methods
| 名称 | Description | |
|---|---|---|
| .gif) | CheckValidCreation | (inherited from ReplicationObject ) | 
| .gif) | CheckValidDefinition | (inherited from ReplicationObject ) | 
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | GetChangeCommand | (inherited from ReplicationObject ) | 
| .gif) | GetCreateCommand | (inherited from ReplicationObject ) | 
| .gif) | GetDropCommand | (inherited from ReplicationObject ) | 
| .gif) | InternalRefresh | (inherited from ReplicationObject ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
顶部
请参阅
参考
DistributionPublication Class
Microsoft.SqlServer.Replication Namespace