DistributionArticle Class

Definition

表示有关在分发服务器上存储的事务发布或快照发布中发布的项目的信息。Represents information about an article published in a transactional or snapshot publication stored at the Distributor.

public ref class DistributionArticle sealed : Microsoft::SqlServer::Replication::ReplicationObject
public sealed class DistributionArticle : Microsoft.SqlServer.Replication.ReplicationObject
type DistributionArticle = class
    inherit ReplicationObject
Public NotInheritable Class DistributionArticle
Inherits ReplicationObject
Inheritance
DistributionArticle

Remarks

DistributionArticle类主要由 SQL Server Management Studio 和非 SQL Server 发布服务器使用。The DistributionArticle class is used primarily by SQL Server Management Studio and for non-SQL Server Publishers. 若要创建、查看或修改项目的属性, 应改为使用TransArticle类的实例。To create, view, or modify the properties of an article, you should instead use an instance of the TransArticle class.

DistributionArticle类需要连接到分发服务器。The DistributionArticle class requires a connection to the Distributor.

线程安全Thread Safety

此类型的任何Shared公共Microsoft静态 (在 Visual Basic) 成员对于多线程操作是安全的。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.

Constructors

DistributionArticle()

创建 DistributionArticle 类的新实例。Creates a new instance of the DistributionArticle class.

DistributionArticle(String, String, String, String, String, ServerConnection)

使用所需的属性和DistributionArticle与分发服务器的连接创建类的新实例。Creates a new instance of the DistributionArticle class with the required properties and a connection to the Distributor.

Properties

ArticleId

获取或设置项目的 ID 值。Gets or sets the ID value for the article.

CachePropertyChanges

获取或设置是缓存对复制属性所做的更改还是立即应用它们。Gets or sets whether to cache changes made to the replication properties or to apply them immediately.

(Inherited from ReplicationObject)
ConnectionContext

获取或设置与 Microsoft SQL Server 实例的连接。Gets or sets the connection to an instance of Microsoft SQL Server.

(Inherited from ReplicationObject)
Description

获取或设置项目的说明。Gets or sets a description for the article.

DistributionDBName

获取或设置包含项目元数据的分发数据库的名称。Gets or sets the name of the distribution database that contains the article metadata.

IsExistingObject

获取服务器上是否存在该对象。Gets whether the object exists on the server or not.

(Inherited from ReplicationObject)
Name

获取或设置项目的名称。Gets or sets the name of the article.

PublicationDBName

获取或设置发布数据库的名称。Gets or sets the name of the publication database.

PublicationName

获取或设置包含项目的发布的名称。Gets or sets the name of the publication that contains the article.

PublisherName

获取或设置发布服务器的名称。Gets or sets the name of the Publisher.

SourceObjectName

获取或设置提供项目数据的数据库对象。Gets or sets the database object that provides the article data.

SourceObjectOwner

获取或设置提供项目数据的数据库对象的所有者。Gets or sets the owner of the database object that provides the article data.

SqlServerName

获取此对象连接到的 Microsoft SQL Server 实例的名称。Gets the name of the Microsoft SQL Server instance to which this object is connected.

(Inherited from ReplicationObject)
UserData

获取或设置允许用户将他们自己的数据附加到该对象的对象属性。Gets or sets an object property that allows users to attach their own data to the object.

(Inherited from ReplicationObject)

Methods

CheckValidCreation()

检查有效复制创建。Checks the valid replication creation.

(Inherited from ReplicationObject)
CheckValidDefinition(Boolean)

指示定义是否有效。Indicates whether the definition is valid.

(Inherited from ReplicationObject)
CommitPropertyChanges()

将所有缓存的属性更改语句发送到 Microsoft SQL Server 的实例。Sends all the cached property change statements to the instance of Microsoft SQL Server.

(Inherited from ReplicationObject)
Create()

在分发服务器上创建项目元数据。Creates the article metadata at the Distributor.

Decouple()

将引用的复制对象与服务器相分离。Decouples the referenced replication object from the server.

(Inherited from ReplicationObject)
GetChangeCommand(StringBuilder, String, String)

从复制返回更改命令。Returns the change command from the replication.

(Inherited from ReplicationObject)
GetCreateCommand(StringBuilder, Boolean, ScriptOptions)

从复制返回创建命令。Returns the create command from the replication.

(Inherited from ReplicationObject)
GetDropCommand(StringBuilder, Boolean)

从复制返回删除命令。Returns the drop command from the replication.

(Inherited from ReplicationObject)
InternalRefresh(Boolean)

从复制启动内部刷新。Initiates an internal refresh from the replication.

(Inherited from ReplicationObject)
Load()

从服务器加载现有对象的属性。Loads the properties of an existing object from the server.

(Inherited from ReplicationObject)
LoadProperties()

从服务器加载现有对象的属性。Loads the properties of an existing object from the server.

(Inherited from ReplicationObject)
Refresh()

重新加载该对象的属性。Reloads the properties of the object.

(Inherited from ReplicationObject)
Remove()

从分发服务器中删除项目元数据。Removes article metadata from the Distributor.

Script(ScriptOptions)

生成可用于-创建或删除具有指定属性的项目的 transact-sql 脚本。Generates a Transact-SQL script that can be used to create or delete the article with the specified properties.

Applies to