Partager via


Propriété MergeSynchronizationAgent.SubscriptionType

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

Espace de noms :  Microsoft.SqlServer.Replication
Assembly :  Microsoft.SqlServer.Replication (en Microsoft.SqlServer.Replication.dll)

Syntaxe

'Déclaration
Public Overridable Property SubscriptionType As SubscriptionOption 
    Get 
    Set
'Utilisation
Dim instance As MergeSynchronizationAgent 
Dim value As SubscriptionOption 

value = instance.SubscriptionType

instance.SubscriptionType = value
public virtual SubscriptionOption SubscriptionType { get; set; }
public:
virtual property SubscriptionOption SubscriptionType {
    SubscriptionOption get ();
    void set (SubscriptionOption value);
}
abstract SubscriptionType : SubscriptionOption with get, set 
override SubscriptionType : SubscriptionOption with get, set
function get SubscriptionType () : SubscriptionOption 
function set SubscriptionType (value : SubscriptionOption)

Valeur de propriété

Type : Microsoft.SqlServer.Replication.SubscriptionOption
A SubscriptionOption value that indicates the subscription type.

Implémente

IMergeSynchronizationAgent.SubscriptionType

Notes

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.

Voir aussi

Référence

MergeSynchronizationAgent Classe

Espace de noms Microsoft.SqlServer.Replication

Autres ressources

S'abonner à des publications