This document is archived and information here might be outdated.  Recommended version.


ICheckInDataSynchronizer2.Synchronize2 Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseDistributed > ESRI.ArcGIS.GeoDatabaseDistributed > Interfaces > IC > ICheckInDataSynchronizer2 Interface > ICheckInDataSynchronizer2.Synchronize2 Method
ArcGIS Developer Help

ICheckInDataSynchronizer2.Synchronize2 Method

Synchronizes the changes in the check-out geodatabase or delta database with the master geodatabase.

[Visual Basic .NET]
Public Function Synchronize2 ( _
    ByVal DataChanges As IDataChanges, _
    ByVal editVersionName As String, _
    ByVal ParentWorkspace As IWorkspaceName, _
    ByVal reconcileCheckout As Boolean, _
    ByVal reconcilePolicy As esriReplicaReconcilePolicyType, _
    ByVal columnLevel As Boolean, _
    ByVal createOIDMappingTable As Boolean _
) As Boolean
[C#]
public bool Synchronize2 (
    IDataChanges DataChanges,
    string editVersionName,
    IWorkspaceName ParentWorkspace,
    bool reconcileCheckout,
    esriReplicaReconcilePolicyType reconcilePolicy,
    bool columnLevel,
    bool createOIDMappingTable
);
[C++]
HRESULT Synchronize2(
  IDataChanges* DataChanges,
  BSTR editVersionName,
  IWorkspaceName* ParentWorkspace,
  VARIANT_BOOL reconcileCheckout,
  esriReplicaReconcilePolicyType reconcilePolicy,
  VARIANT_BOOL columnLevel,
  VARIANT_BOOL createOIDMappingTable
);
[C++]
Parameters
DataChanges [in]

DataChanges is a parameter of type IDataChanges* editVersionName [in]
editVersionName is a parameter of type BSTR ParentWorkspace [in]
ParentWorkspace is a parameter of type IWorkspaceName* reconcileCheckout [in]
reconcileCheckout is a parameter of type bool reconcilePolicy [in]
reconcilePolicy is a parameter of type esriReplicaReconcilePolicyType columnLevel [in]
columnLevel is a parameter of type bool createOIDMappingTable [in]
createOIDMappingTable is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The Synchronize2 method transfers the changes from a check-out geodatabase (either personal, file, or ArcSDE) or a delta file to a parent replica (previously referred to as a master geodatabase). It does not unregister the check-out.

If reconcileCheckout is TRUE, the changes are applied to the check-out version and this version is reconciled with it�s parent version. If reconcileCheckout is FALSE, the changes are applied to the check-out version, but no reconcile is performed.

The editVersionName is the check-out version.

The childReconcilePolicy parameter takes an esriReplicaReconilePolicyType enumeration to determine how conflicts will be handled during reconcile. The following describes the meaning of each enumeration:

esriReplicaDetectConflicts -If conflicts occur, the reconcile process is aborted and you must reconcile and post manually after sycnhronization is completed.

esriReplicaResolveConflictsInFavorOfImportedChanges - The representation in the check-out geodatabase is automatically applied if conflicts arrise.

esriReplicaResolveConflictsInFavorOfDatabaseChanges - The representation from the parent replica importing is automatically applied if conflicts arrise.

esriReplicaResolveConflictsNone - It indicates that a reconcile and post should not be applied during synchronization.

If columnLevel is TRUE, conflicts are detected only when the same attribute is updated in both the check-out and the parent replica. For example, if the check-out has modified the parcel's owner attribute and the parent replica has modified the parcel's street address attribute the feature will not be in conflict. It is only when each version modifies the same attribute that the object will be in conflict.

The Synchronize2 method returns TRUE if conflicts were detected.  It returns FALSE if no conflicts were detected.

NOTE: It is recommended that you use ICheckin interface to check in changes instead of this interface.

See Also

ICheckInDataSynchronizer2 Interface