Класс DistributionArticle

Represents information about an article published in a transactional or snapshot publication stored at the Distributor.

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

System.Object
  Microsoft.SqlServer.Replication.ReplicationObject
    Microsoft.SqlServer.Replication.DistributionArticle

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

Синтаксис

'Декларация
Public NotInheritable Class DistributionArticle _
    Inherits ReplicationObject
'Применение
Dim instance As DistributionArticle
public sealed class DistributionArticle : ReplicationObject
public ref class DistributionArticle sealed : public ReplicationObject
[<SealedAttribute>]
type DistributionArticle =  
    class 
        inherit ReplicationObject 
    end
public final class DistributionArticle extends ReplicationObject

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

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

  Имя Описание
Открытый метод DistributionArticle() Creates a new instance of the DistributionArticle class.
Открытый метод DistributionArticle(String, String, String, String, String, ServerConnection) Creates a new instance of the DistributionArticle class with the required properties and a connection to the Distributor.

В начало

Свойства

  Имя Описание
Открытое свойство ArticleId 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. (Производный от ReplicationObject.)
Открытое свойство ConnectionContext Gets or sets the connection to an instance of Microsoft SQL Server. (Производный от 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. (Производный от 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 Gets the name of the Microsoft SQL Server instance to which this object is connected. (Производный от ReplicationObject.)
Открытое свойство 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.)
Открытый метод Create Creates the article metadata at the Distributor.
Открытый метод 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.)
Открытый метод Remove Removes article metadata from the Distributor.
Открытый метод Script Generates a Transact-SQL script that can be used to create or delete the article with the specified properties.
Открытый метод ToString (Производный от Object.)

В начало

Замечания

The DistributionArticle class is used primarily by SQL Server Management Studio and for non-SQL Server Publishers. To create, view, or modify the properties of an article, you should instead use an instance of the TransArticle class.

The DistributionArticle class requires a connection to the Distributor.

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