ArcGIS Pro 3.8 API Reference Guide
ArcGIS.Core.Data Namespace / Geodatabase Class / Geodatabase Constructor / Geodatabase Constructor(ArcGISServerConnectionFile)
A valid ArcGIS Server connection file that ends with the .ags extension.

In This Topic
    Geodatabase Constructor(ArcGISServerConnectionFile)
    In This Topic
    Opens a web geodatabase given a connectionFile to a valid service connection. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    connectionFile
    A valid ArcGIS Server connection file that ends with the .ags extension.
    Exceptions
    ExceptionDescription
    The connectionFile to the feature service are invalid or if the feature service could not be opened.
    This object must be created within the lambda or delegate passed to QueuedTask.Run, or on a compatible STA thread.
    Requirements

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

    ArcGIS Pro version: 3.8 or higher.
    See Also