ArcObjects Library Reference (GeoDatabase)  

IVersionEdit.CanPost Method

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

[Visual Basic .NET]
Public Function CanPost ( _
) As Boolean
[C#]
public bool CanPost (
);
[C++]
HRESULT CanPost(
  VARIANT_BOOL* CanPost
);
[C++]

Parameters

CanPost [out, retval]   CanPost is a parameter of type VARIANT_BOOL

Product Availability

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

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 developers 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