Поделиться через


Свойство MergeSynchronizationAgent.SyncToAlternate

Gets or sets whether the synchronization is to an alternate synchronization partner.

Пространство имен:  Microsoft.SqlServer.Replication
Сборка:  Microsoft.SqlServer.Replication (в Microsoft.SqlServer.Replication.dll)

Синтаксис

'Декларация
Public Overridable Property SyncToAlternate As Boolean 
    Get 
    Set
'Применение
Dim instance As MergeSynchronizationAgent 
Dim value As Boolean 

value = instance.SyncToAlternate

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

Значение свойства

Тип: System.Boolean
True if the synchronization is to an alternate synchronization partner; otherwise, false.

Реализует

IMergeSynchronizationAgent.SyncToAlternate

Замечания

The Alternate Synchronization Partners feature for merge replication has been deprecated.

To select an alternate synchronization partner, the Publisher, PublisherDatabase, Publication, and Distributor properties should be set to the corresponding property values of an instance of the AlternateSynchronizationPartner class before the Synchronize method is called.

См. также

Справочник

MergeSynchronizationAgent Класс

Пространство имен Microsoft.SqlServer.Replication