ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Data Namespace / Geodatabase Class / Geodatabase Constructor / Geodatabase Constructor(ServiceConnectionProperties)
A valid ServiceConnectionProperties object which has the URI to the feature service set. In case of feature services hosted on ArcGIS Server which is not federated with ArcGIS Portal, the username and password properties are also expected to be set.

In This Topic
    Geodatabase Constructor(ServiceConnectionProperties)
    In This Topic
    Opens a web geodatabase given a serviceConnectionProperties to a valid feature service location. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    serviceConnectionProperties
    A valid ServiceConnectionProperties object which has the URI to the feature service set. In case of feature services hosted on ArcGIS Server which is not federated with ArcGIS Portal, the username and password properties are also expected to be set.
    Exceptions
    ExceptionDescription
    The serviceConnectionProperties 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, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also