共用方式為


TransSubscription.SubscriberType Property

Definition

Gets or sets the updating behavior for data changes at the Subscriber.

public:
 property Microsoft::SqlServer::Replication::TransSubscriberType SubscriberType { Microsoft::SqlServer::Replication::TransSubscriberType get(); void set(Microsoft::SqlServer::Replication::TransSubscriberType value); };
public Microsoft.SqlServer.Replication.TransSubscriberType SubscriberType { get; set; }
member this.SubscriberType : Microsoft.SqlServer.Replication.TransSubscriberType with get, set
Public Property SubscriberType As TransSubscriberType

Property Value

A TransSubscriberType value.

Remarks

The SubscriberType must be set before the subscription is created, and cannot be changed once the subscription has been created.

The SubscriberType property can only be retrieved by members of the sysadmin fixed server role, by members of the db_owner fixed database role, or by the user who created the subscription.

The SubscriberType property can only be set by members of the sysadmin fixed server role or by members of the db_owner fixed database role.

Retrieving SubscriberType is equivalent to executing sp_helpsubscription (Transact-SQL).

Setting SubscriberType is equivalent to executing sp_addsubscription (Transact-SQL).

Applies to