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

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

IVersionEdit.CanPost Method

Returns a boolean if the version can be posted to the reconcile version.

[Visual Basic .NET]
Public Function CanPost ( _
) As Boolean
public bool CanPost (

Product Availability

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


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.


See Also

IVersionEdit Interface