ArcObjects Library Reference (GeoDatabaseDistributed)  

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,
  VARIANT_BOOL* conflictsDetected
);
[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 VARIANT_BOOL reconcilePolicy [in]

  reconcilePolicy is a parameter of type esriReplicaReconcilePolicyType

columnLevel [in]   columnLevel is a parameter of type VARIANT_BOOL createOIDMappingTable [in]   createOIDMappingTable is a parameter of type VARIANT_BOOL conflictsDetected [out, retval]   conflictsDetected is a parameter of type VARIANT_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 its 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