ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Data Namespace / MobileGeodatabaseType Enumeration
Example Example

In This Topic
    MobileGeodatabaseType Enumeration
    In This Topic
    Specifies the type of mobile geodatabase.
    Syntax
    Members
    MemberDescription
    MapPackageMobileGeodatabase Mobile map packages enable sharing maps with mobile apps such as Explorer, Navigator, and apps built with the ArcGIS Runtime SDK. It has the .mmpk extension and contains a .geodatabase file.
    MobileGeodatabase A mobile geodatabase that is created in ArcGIS Pro using the user interface, geoprocessing tools, or the ArcGIS Pro SDK. It has the .geodatabase extension.
    OfflineMobileGeodatabase A mobile geodatabase which is created when taking a map offline using ArcGIS Pro or Collector. It has the .geodatabase extension.
    Unknown Unknown mobile geodatabase type.
    Example
    Opening a Mobile Geodatabase given the path
    {
      await QueuedTask.Run(() =>
      {
        // Opens a mobile geodatabase. This will open the geodatabase if the folder exists and contains a valid mobile geodatabase.
        using (Geodatabase mobileGeodatabase = new Geodatabase(new MobileGeodatabaseConnectionPath(new Uri(@"C:\Data\LocalGovernment.geodatabase"))))
        {
          Connector connector = mobileGeodatabase.GetConnector();
          if (connector is MobileGeodatabaseConnectionPath mobileConnPath)
          {
            // Get the type of the mobile geodatabase 
            MobileGeodatabaseType type = mobileConnPath.Type;
          }
        }
      });
    }
    Inheritance Hierarchy

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

    Requirements

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

    ArcGIS Pro version: 3.8 or higher.
    See Also