ArcGIS Pro 2.8 API Reference Guide
Database Constructor(DatabaseConnectionFile)

ArcGIS.Core.Data Namespace > Database Class > Database Constructor : Database Constructor(DatabaseConnectionFile)
A physical database connection file that ends with a ".sde" extension.
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 10, Windows 8.1

See Also

Reference

Database Class
Database Members
Overload List