Interface IVersionEdit
- Namespace
- ESRI.ArcGIS.Geodatabase
- Assembly
- ESRI.Server.Geodatabase.dll
Provides access to members that return information about versions and posting of versions.
[Guid("2393B65D-74D4-11D2-AAD9-00C04FA37585")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IVersionEdit
Properties
CommonAncestorVersion
The common ancestor of this version and the reconcile version.
IVersion CommonAncestorVersion { get; }
Property Value
Remarks
The CommonAncestorVersion method returns an IVersion of the version that the current edit version is reconciling against. The common ancestor version represents the state of the database at the time the version was created from the target version (i.e. when the two versions were identical). This provides a representation of the version which can be used to compare features or rows after the reconciliation.
The IVersion returned is not available as a workspace for editing.
This property should only be called after a Reconcile or the IVersion object will be nothing.
ConflictClasses
All objects which contain conflicts between the current and reconciled versions.
IEnumConflictClass ConflictClasses { get; }
Property Value
Remarks
The read-only property ConflictClasses returns an IEnumConflictClass that can be used to iterate over the Classes that have conflicts between the current version and the target reconciled version.
This property should only be called after a Reconcile or the enumeration will be empty.
ModifiedClasses
All objects modified by the current and reconciled versions.
IEnumBSTR ModifiedClasses { get; }
Property Value
Remarks
The read-only property ModifiedClasses returns an IEnumBSTR that can be used to iterate over the names of the tables that have been modified by the current version being edited and the target reconciled version.
This property should only be called after a Reconcile or the enumeration will be empty.
PreReconcileVersion
The version prior to reconciliation.
IVersion PreReconcileVersion { get; }
Property Value
Remarks
The PreReconcileVersion method returns an IVersion of the version that the current edit version is reconciling against. The pre-reconcile version represents the state of the database prior to the reconcile operation. This provides a representation of the version which can be used to compare features or rows after the reconciliation.
The IVersion returned is not available as a workspace for editing.
This property should only be called after a Reconcile or the IVersion object will be nothing.
ReconcilePrimeVersion
The version that the current version is reconciling against.
IVersion ReconcilePrimeVersion { get; }
Property Value
ReconcileVersion
The version that the current version is reconciling against.
IVersion ReconcileVersion { get; }
Property Value
Remarks
The ReconcileVersion method returns an IVersion of the version that the current edit version is reconciling against. The reconcile version represents the state of the database for the target reconcile version when the reconcile operation started. This provides a representation of the target reconcile version which can be used to compare features or rows after the reconciliation.
This property should only be called after a Reconcile or the IVersion object will be nothing.
StartEditingVersion
The version prior to any edits.
IVersion StartEditingVersion { get; }
Property Value
Remarks
The StartEditingVersion method returns an IVersion of the version that the current edit version is reconciling against. The start editing version represents the state of the database when start editing was initiated. This provides a representation of the version which can be used to compare features or rows after the reconciliation.
The IVersion returned is not available as a workspace for editing.
This property should only be called after a Reconcile or the IVersion object will be nothing.
Methods
CanPost()
Returns a boolean if the version can be posted to the reconcile version.
bool CanPost()
Returns
Remarks
The CanPost method is only true if IVersionEdit.Reconcile has been performed and the reconcile operation has not been undone. CanPost does not check if the target version has been redefined since the reconcile operation.
The Post method requires that the current edit version has been reconciled with any ancestor versions prior to being called. The implicit locking during a reconcile should greatly increase the chances of the source and target versions being ready to post. There is a possibility that these two versions could be out of sync, possibly do to the target version changing after a reconcile operation, and in this case an error will be returned to the application on the post call. It is the application developer’s responsibility to check the CanPost method prior to calling post and handling the post errors mentioned above thrown during the Post operation.
Post first performs a save and then synchronizes the target version with the current edit version. The Post operation cannot be undone.
PartialPost(IArray)
Posts features from the current version to default.
void PartialPost(IArray selectionSetsOfFeaturesToPost)
Parameters
selectionSetsOfFeaturesToPostIArray
Post(string)
Posts the current version to the reconciled version.
void Post(string VersionName)
Parameters
VersionNamestring
Remarks
The Post method requires that the current edit version has been reconciled with any ancestor versions prior to being called. The implicit locking during a reconcile should greatly increase the chances of the source and target versions being ready to post. There is a possibility that these two versions could be out of sync, possible do to the target version changing after a reconcile operation, and in this case an error will be returned to the application on the post call. It is the application developer’s responsibility to check the CanPost method prior to calling post and handling the post errors mentioned above thrown during the Post operation.
Post first performs a save and then synchronizes the target version with the current edit version. This results in an explicit commit of any open transactions in the database. The Post operation can not be undone.
Reconcile(string)
Reconciles the current version with a target version.
bool Reconcile(string VersionName)
Parameters
VersionNamestring
Returns
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
Reconcile2(string, bool)
Reconciles the current version with a target version.
bool Reconcile2(string VersionName, bool acquireLock)
Parameters
Returns
Reconcile3(string, bool, bool)
Reconciles the current version with a target version.
bool Reconcile3(string VersionName, bool acquireLock, bool abortIfConflicts)
Parameters
Returns
Reconcile4(string, bool, bool, bool, bool)
Reconciles the current version with a target version.
bool Reconcile4(string VersionName, bool acquireLock, bool abortIfConflicts, bool ChildWins, bool ColumnLevel)
Parameters
Returns
SupportParentPreReconcile(bool)
Enables or disables support for a Parent pre-Reconcile State to be created during Reconcile.
void SupportParentPreReconcile(bool enableReconcile)
Parameters
enableReconcilebool