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

IVersion.CreateVersion Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IV > IVersion Interface > IVersion.CreateVersion Method
ArcGIS Developer Help

IVersion.CreateVersion Method

Creates a new version equivalent to this version.

[Visual Basic .NET]
Public Function CreateVersion ( _
    ByVal newName As String _
) As IVersion
public IVersion CreateVersion (
    string newName
HRESULT CreateVersion(
  BSTR newName
newName [in]

newName is a parameter of type BSTR

Product Availability

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

Errors Returned

FDO_E_SE_VERSION_EXISTS: Version already exists.

FDO_E_SE_INVALID_PARAM_VALUE: Invalid parameter value passed to function.

Functional License Check

If your application/site is not appropriately licensed, CreateVersion can return an error of FDO_E_NO_OPERATION_LICENSE.


The CreateVersion method allows you to create new version from the existing IVersion. The new version is a child of the current version and is owned by the connected user. The version name is limited to 64 characters and is private by default.

Creating a new version requires an existing version to be the parent of the new version. When the new version is created, the parent and child versions are identical.

See Also

IVersion Interface