ArcGIS Pro 2.7 API Reference Guide
Database Constructor(DatabaseConnectionProperties)

ArcGIS.Core.Data Namespace > Database Class > Database Constructor : Database Constructor(DatabaseConnectionProperties)
The properties used to connect to an enterprise database.
Opens an enterprise database with the specified connection properties. This method must be called on the MCT. Use QueuedTask.Run.
Syntax

Parameters

databaseConnectionProperties
The properties used to connect to an enterprise database.
Exceptions
ExceptionDescription
databaseConnectionProperties 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