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


IVersionEdit.Reconcile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IVersionEdit Interface > IVersionEdit.Reconcile Method
ArcGIS Developer Help

IVersionEdit.Reconcile Method

Reconciles the current version with a target version.

[Visual Basic .NET]
Public Function Reconcile ( _
    ByVal VersionName As String _
) As Boolean
[C#]
public bool Reconcile (
    string VersionName
);
[C++]
HRESULT Reconcile(
  BSTR VersionName
);
[C++]
Parameters
VersionName [in]

VersionName is a parameter of type BSTR

Product Availability

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

Errors Returned

FDO_E_RECONICLE_VERSION_NOT_AVAILABLE: Unable to reconcile: the target version is currently being reconciled against.

FDO_E_VERSION_BEING_EDITED: Operation not allowed while the version is being edited.

FDO_E_VERSION_NOT_FOUND: The version could not be located.

Remarks

The Reconcile function reconciles the current edit version with the specified target version.  The target version must be an ancestor of the current version or an error will be returned. The target version name passed in is case-sensitive and should take the form {owner}.{version_name} for example, SDE.DEFAULT.

If the returned boolean value from Reconcile is TRUE, then conflicts were detected. Otherwise no conflicts were detected.

A reconcile can only be performed if no other users are currently editing the version. As well, the target version cannot concurrently be reconciling by a second application. See IVersion::IVersionLocks for additional information on detecting version locks.

Calling Reconcile will abort the current edit operation therefore any edits made within an open edit operation when reconcile is called will be lost. If there is an open edit operation it is good practice to call StopEditOperation prior to calling Reconcile

 

 

 

See Also

IVersionEdit Interface