Share via


ReplicationServer.DistributionPublishers Property

Definition

Gets the Publishers that use the currently connected instance of Microsoft SQL Server as a Distributor.

public:
 property Microsoft::SqlServer::Replication::DistributionPublisherCollection ^ DistributionPublishers { Microsoft::SqlServer::Replication::DistributionPublisherCollection ^ get(); };
public Microsoft.SqlServer.Replication.DistributionPublisherCollection DistributionPublishers { get; }
member this.DistributionPublishers : Microsoft.SqlServer.Replication.DistributionPublisherCollection
Public ReadOnly Property DistributionPublishers As DistributionPublisherCollection

Property Value

A DistributionPublisherCollection object that represents all the Publishers using the replication server as a Distributor.

Remarks

A DistributionPublisher object in the returned DistributionPublisherCollection can be accessed using either an integer or a string indexer.

The DistributionServer property is equivalent to the sp_helpdistpublisher (Transact-SQL) stored procedure.

The DistributionPublishers property can be retrieved by members of the sysadmin fixed server role for any Publisher using the local server as a Distributor; members of the db_owner fixed database role or the replmonitor role in a distribution database for any Publisher using the Distributor; and users in the publication access list (PAL) for any publication serviced by the Distributor.

Applies to