다음을 통해 공유


DistributionPublications Collection

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The DistributionPublications collection contains DistributionPublication objects that expose the properties of publications managed by the Distributor.

현재 개체를 보여 주는 SQL-DMO 개체 모델

Methods

Add Method

Refresh Method

Item Method

Remove Method (Collections)

주의

With the DistributionPublications collection, you can:

  • Create a Distributor-managed replication publication.
  • Remove a Distributor-managed replication publication.

For more information about Distributor-managed publications, see the DistributionPublication Objectsection.

The Item method of the DistributionPublications collection supports member selection using the publication name or the ordinal position of the object in the collection. Additionally, when using the publication name to select an object from the collection, the Item method allows name qualification of the targeted publication by using the publication database. For example:

Set oDistPublication = oDistPublisher.DistributionPublications("products", "northwind")

The Remove method of the DistributionPublications collection supports member targeting using either the unqualified publication name or the ordinal position of the object in the collection. When using the DistributionPublications collection to remove a publication, it is suggested that you use the Item method of the collection to extract the object referencing the correct publication, then use the Remove method of the DistributionPublication method to remove the targeted publication.