Udostępnij za pośrednictwem


TransSynchronizationAgent.SubscriptionType Property

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

Namespace: Microsoft.SqlServer.Replication
Assembly: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)

Syntax

'Declaration
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)

Property Value

A SubscriptionOption value that indicates the subscription type.

Remarks

The type of subscription you choose depends on where the agent runs. With a push subscription, the Distribution 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 in which you cannot establish a SQL Server connection to the Publisher during subscription configuration.

Thread Safety

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.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

TransSynchronizationAgent Class
TransSynchronizationAgent Members
Microsoft.SqlServer.Replication Namespace

Other Resources

Subscribing to Publications