scholm

Change version on Layer

Discussion created by scholm on Sep 2, 2011
I am looking far a simple way to change the version on a layer in a multiversioned database using ArcObjects.
In ArcMap (10.0) in the TOC  under the 'List By Source' tab i can right-click a group of layers and select 'Change Version...' i'm looking for a way to do exactly that using ArcObjects.
I found a solution here http://edndoc.esri.com/arcobjects/8.3/Samples/ArcMap/Versioning/Change%20Current%20Version%20in%20ArcMap/clsChangeVersionUtil.htm

But this seems overly complex for such a simple operation.
Is there a simple way to do this using ArcObjects 10 for .Net?
Something as simple as IFeatureLayer.SetVersion(IVersion v) would be nice.

Outcomes