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

IVersionEdit.Post 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.Post Method
ArcGIS Developer Help

IVersionEdit.Post Method

Posts the current version to the reconcilled version.

[Visual Basic .NET]
Public Sub Post ( _
    ByVal VersionName As String _
public void Post (
    string VersionName
  BSTR VersionName
VersionName [in]

VersionName is a parameter of type BSTR

Product Availability

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

Errors Returned

FDO_E_VERSION_RECONCILE_LOST: Post not allowed after undoing a reconcile.

FDO_E_VERSION_IS_PROTECTED: Operation not allowed because the version is protected.

FDO_E_VERSION_NOT_RECONCILED: The version hasn't been reconciled.

FDO_E_VERSION_REDEFINED: The version has been redefined to reference a new database state.


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.


See Also

IVersionEdit Interface