ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data Namespace / VersionDescription Class
Members Example

In This Topic
    VersionDescription Class
    In This Topic
    Represents a mechanism to create or alter a Version.
    Syntax
    public sealed class VersionDescription 
    Public NotInheritable Class VersionDescription 
    Example
    Creating a Version
    public Version CreateVersion(Geodatabase geodatabase, string versionName, string description, VersionAccessType versionAccessType)
    {
      if (!geodatabase.IsVersioningSupported()) return null;
    
      using (VersionManager versionManager = geodatabase.GetVersionManager())
      {
        VersionDescription versionDescription = new VersionDescription(versionName, description, versionAccessType);
        return versionManager.CreateVersion(versionDescription);
      }
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.Data.VersionDescription

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also