ArcObjects Library Reference (GeoDatabase)  

IVersionEdit.Post Method

Posts the current version to the reconcilled version.

[Visual Basic .NET]
Public Sub Post ( _
    ByVal VersionName As String _
)
[C#]
public void Post (
    string VersionName
);
[C++]
HRESULT Post(
  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_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.

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.

 

See Also

IVersionEdit Interface

.NET Related Topics

Geodatabase | Reconciling versions