ArcGIS Pro 2.9 API Reference Guide
CreateVersion(VersionDescription,Version) Method

ArcGIS.Core.Data Namespace > VersionManager Class > CreateVersion Method : CreateVersion(VersionDescription,Version) Method
The VersionDescription that specifies what the version should look like.
The parent Version under which the new version is created.
Creates a new Version as a child of parent. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
Public Overloads Function CreateVersion( _
   ByVal versionDescription As VersionDescription, _
   ByVal parent As Version _
) As Version

Parameters

versionDescription
The VersionDescription that specifies what the version should look like.
parent
The parent Version under which the new version is created.
Exceptions
ExceptionDescription
versionDescription or parent is null.
The VersionDescription.Name value in versionDescription is null or an empty string.
The VersionDescription.AccessType value in versionDescription is invalid.
A geodatabase-related exception has occurred.
This method or property must be called within the lambda passed to QueuedTask.Run
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

VersionManager Class
VersionManager Members
Overload List