ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.Data Namespace / Database Class / Database Constructor / Database Constructor(DatabaseConnectionFile)
A physical database connection file that ends with a ".sde" extension.
Version

Database Constructor(DatabaseConnectionFile)
Opens an enterprise database with the specified connection file. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

databaseConnectionFile
A physical database connection file that ends with a ".sde" extension.
Exceptions
ExceptionDescription
databaseConnectionFile is null.
A database-related exception has occurred.
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