MergeSynchronizationAgent.SubscriptionType Property

Gets or sets whether the subscription is a push or pull subscription.

命名空间: Microsoft.SqlServer.Replication
程序集: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)

语法

声明
Public Overridable Property SubscriptionType As SubscriptionOption
public virtual SubscriptionOption SubscriptionType { get; set; }
public:
virtual property SubscriptionOption SubscriptionType {
    SubscriptionOption get ();
    void set (SubscriptionOption newValue);
}
/** @property */
public SubscriptionOption get_SubscriptionType ()

/** @property */
public void set_SubscriptionType (SubscriptionOption newValue)
public function get SubscriptionType () : SubscriptionOption

public function set SubscriptionType (newValue : SubscriptionOption)

属性值

A SubscriptionOption value that indicates the subscription type.

备注

The type of subscription you choose depends on where the agent runs. With a push subscription, the Merge Agent runs at the Distributor; whereas, with a pull subscription, agent runs at the Subscriber. Anonymous subscriptions are required if you want to create a subscription without registering the subscription at the Publisher. This is necessary for cases such as Web synchronization, in which you cannot establish a SQL Server connection to the Publisher during subscription configuration.

线程安全

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

开发平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

目标平台

有关支持的平台列表,请参阅安装 SQL Server 2005 的硬件和软件要求。

请参阅

参考

MergeSynchronizationAgent Class
MergeSynchronizationAgent Members
Microsoft.SqlServer.Replication Namespace

其他资源

订阅发布