ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Data Namespace / RegistrationType Enumeration
Example Example

In This Topic
    RegistrationType Enumeration
    In This Topic
    Specifies the registration type of a dataset.
    Syntax
    Members
    MemberDescription
    Nonversioned Registered as non-versioned.
    Versioned Registered as versioned.
    VersionedWithMoveToBase Registered as versioned with the option of moving edits to base.
    Example
    Check if table is versioned
    {
      // Must be called within QueuedTask.Run
      bool IsTableVersioned(Geodatabase geodatabase, string tableName)
      {
        using (Table table = geodatabase.OpenDataset<Table>(tableName))
        {
          // Check table version type
          RegistrationType registrationType = table.GetRegistrationType();
          if (registrationType == RegistrationType.Versioned)
          {
            return true;
          }
        }
        return false;
      }
    }
    Inheritance Hierarchy

    System.Object
       System.ValueType
          System.Enum
             ArcGIS.Core.Data.RegistrationType

    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also