IVersionEdit4 Interface

Provides access to members that return information about versions and posting of versions.

Description

The IVersionEdit4interface is used to reconcile a source version with a target version and optionally not obtain version locks during the process, abort the reconcile process if conflicts are detected, resolve the conflicts in favor of the source version and set the conflict detection granularity to the attribute level as opposed to the row level. Once reconciled, the object provides the ability to work with representations of the version prior to start editing, the pre-reconcile version, the reconcile version, and the common ancestor version for conflict resolution.

Members

Name Description
Method CanPost Returns a boolean if the version can be posted to the reconcile version.
Read-only property CommonAncestorVersion The common ancestor of this version and the reconcile version.
Read-only property ConflictClasses All objects which contain conflicts between the current and reconciled versions.
Read-only property ModifiedClasses All objects modified by the current and reconciled versions.
Method Post Posts the current version to the reconciled version.
Read-only property PreReconcileVersion The version prior to reconciliation.
Method Reconcile Reconciles the current version with a target version.
Method Reconcile2 Reconciles the current version with a target version.
Method Reconcile3 Reconciles the current version with a target version.
Method Reconcile4 Reconciles the current version with a target version.
Read-only property ReconcileVersion The version that the current version is reconciling against.
Read-only property StartEditingVersion The version prior to any edits.

IVersionEdit4.Reconcile4 Method

Reconciles the current version with a target version.

Public Function Reconcile4 ( _
    ByVal VersionName As String, _
    ByVal acquireLock As Boolean, _
    ByVal abortIfConflicts As Boolean, _
    ByVal ChildWins As Boolean, _
    ByVal ColumnLevel As Boolean _
) As Boolean
public bool Reconcile4 (
    string VersionName,
    bool acquireLock,
    bool abortIfConflicts,
    bool ChildWins,
    bool ColumnLevel
);

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 Reconcile4 function reconciles the current source 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}.{versionname} for example, SDE.DEFAULT. The first Boolean argument _acquireLock specifies if locks should be obtained or not - true acquires the lock, false does not acquire the locks. The second Boolean argument abortIfConflicts specifies if the reconcile process should abort the reconcile if conflicts are detected for any class. Ideally, the second Boolean is only set to true when performing a reconcile in an automated batch type environment where a user does not have the ability to interactively resolve conflicts. By default all conflicts are resolved in favor of the target version, but setting the third Boolean argument childWins to true all conflicts detected would be resolved in favor of the source version. By setting the Boolean argument columnLevel to true, conflicts are detected only when the same attribute is updated in the source and target versions. For example, if the source version has modified the parcel's owner attribute and the target version 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.

If the returned Boolean value from Reconcile4 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.

The Reconcile4 method provides the ability to either acquire or not acquire the version locks during the reconcile process. If the locks are not acquired the version is able to be reconciled in parallel when other versions are currently being reconciled. One may desire this functionality when there is no intention of posting the version after the reconcile process. If the intention is to "post" the version after performing the reconcile, it is strongly recommended that the locks are acquired.If one does attempt to post after performing the reconcile, there is a chance that the target version might have been modified since the reconcile. In this case, an FDO_E_VERSION_REDEFINED error will be raised informing you that the version has been redefined. The version will have to be re-reconciled. Therefore, the first reconcile is a waste of server and client system resources.

Calling IVersionEdit4::Reconcile4 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

Inherited Interfaces

Interfaces Description
IVersionEdit3 Provides access to members that return information about versions and posting of versions.
IVersionEdit2 Provides access to members that return information about versions and posting of versions.
IVersionEdit Provides access to members that return information about versions and posting of versions.

Classes that implement IVersionEdit4

Classes Description

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.