DistributionPublication.PubId Property

Definition

Gets the publication ID.

public:
 property int PubId { int get(); };
public int PubId { get; }
member this.PubId : int
Public ReadOnly Property PubId As Integer

Property Value

A String value.

Remarks

The <xref:Microsoft.SqlServer.Replication.DistributionPublication.PubID%2A> property cannot be changed for an existing publication.

The <xref:Microsoft.SqlServer.Replication.DistributionPublication.PubID%2A> property can only be retrieved by members of the sysadmin fixed server role at the Distributor, by members of the db_owner fixed database role on the distribution database, or by users in the publication access list (PAL).

The <xref:Microsoft.SqlServer.Replication.DistributionPublication.PubID%2A> property can only be set by members of the db_owner fixed database role on the distribution database.

Applies to